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

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

问题描述



如何在远程服务器和glassfish上部署我的Web项目(或耳朵项目)?如何使用ant-deploy.xml和build-这个netbeans为此创建的impl.xml?



使用autodeploy文件夹和单独添加sun-resources.xml到GF

使用ant你可以一步一步地解释一下吗?



请问

解决方案

您可以通过管理控制台手动部署应用程序。



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

  asadmin deploy --user =< adminuser>主机=<主机名> < jar / war / ear的路径> 

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



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



这一切都取决于你的上下文,没有一个答案,有很多可能性。如果您不知道要查找的内容,只需使用由NetBeans创建的Ant构建脚本。


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

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

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

Would you please explain me step by step?

Regards

解决方案

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

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>

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

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

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天全站免登陆