在 Glassfish V3 上部署的最佳方式 [英] Best way to deploy on Glassfish V3

查看:24
本文介绍了在 Glassfish V3 上部署的最佳方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将我的网络项目(或耳朵项目)部署到远程服务器和 glassfish 的最佳方式是什么?

What is the best way to deploy my web project (or ear project) to remote server and glassfish?

如何使用 netbeans 为此创建的 ant-deploy.xml 和 build-impl.xml?

How to use ant-deploy.xml and build-impl.xml that netbeans create for this purpose?

使用autodeploy文件夹并单独添加sun-resources.xml到GF或者使用蚂蚁和....

Using autodeploy folder and separately adding sun-resources.xml to the GF Or Using ant and....

你能不能一步一步解释我?

Would you please explain me step by step?

问候

推荐答案

好吧,您可以通过管理控制台手动部署您的应用程序.

Well, you could manually deploy your app via the admin console.

或者您可以使用 asadmin 命令.最简单的远程部署如下所示:

Or you could use the asadmin command. A remote deployment in its simplest from would look like:

asadmin deploy --user=<adminuser> --host=<hostname> <path to jar/war/ear>

这可以是 shell 脚本,也可以是包装在 Ant 或 Maven 中.

And this could be shell scripted, or wrapped in Ant, or Maven.

或者您可以使用更专业的工具(Ant Taskmaven glassfish 插件maven asadmin 插件货物).

Or you could use more specialized tools (the Ant Task, the maven glassfish plugin, the maven asadmin plugin, Cargo).

这完全取决于您的上下文,没有单一的答案,有很多可能性.如果您不知道要查找什么,只需使用 NetBeans 创建的 Ant 构建脚本即可.

It all depends on your context, there is no single answer and there are many possibilities. If you don't know what you're looking for, just use the Ant build scripts created by NetBeans.

这篇关于在 Glassfish V3 上部署的最佳方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆