可自行部署的 Java EE 应用程序
如何使 Java EE 应用程序替换其 EAR 并重新启动而不访问服务器控制台? 它在 IBM Websphere 6 中运行。
2012-02-08:已添加
我无法在服务器上运行脚本,因为它是共享主机。我唯一能做的就是重建应用程序并请求发布许可。这是一个漫长而繁琐的过程。所以我想让它能够自我部署。
How to make a Java EE application to replace its EAR and restart without accessing server console?
It is running in IBM Websphere 6.
2012-02-08: Added
I'm not able to run scripts on server because it is a shared host. The only thing I can do is to rebuild the application and ask permission to publish. It's a long and burocratic process. So I would like to make it self deployable.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用 wsadmin 脚本工具 来执行此操作。将其与 Ant 或 Maven 等构建工具集成。
You can use wsadmin scripting facilities to do this. Integrate that with your build tools like Ant or Maven etc.
Netbeans IDE 具有适用于 java ee 应用程序的“保存时部署”功能。但是我不确定您是否可以注册 Websphere 服务器以便自动部署您的应用程序。由于我正在使用 Glassfish 服务器,另一个选择是将 Ear 文件复制到 autodeploy 文件夹,然后重新部署应用程序。不知道websphere有没有类似的功能。我希望我给了你一些选择。 :)
Netbeans IDE has a feature "Deploy on save" for a java ee application. However I am not sure if you can register a Websphere server in order for your application to be deplyed automatically. Another option, since i am working with Glassfish server, is to copy the ear file to the autodeploy folder and the application is being redeployed. I dont know if websphere has a similar feature. I hope i gave you some options. :)
使用像 Jenkins/Hudson 这样的持续集成服务器,一旦你配置了它,它将构建和部署你的代码,无需手动干预。您可以使用 ant 或 Maven 作为构建工具。
您可以使用与任何 Web 服务器或应用程序服务器的持续集成。
Use Continous Integration Server like Jenkins/Hudson, it will build and deploy your code without manual intervention, once you configure it. you can use ant or maven as your build tools.
You can use Continous integration with any web-server or application server.