使用WebLogic服务器进行热部署?
我有一个在 WebLogic 服务器上运行的企业应用程序。
当我修改任何 Java 类时,我每次都必须构建 .ear
文件并部署到服务器。即使是很小的修改,我也需要构建整个应用程序并将其部署到服务器。服务器大约需要 10 分钟才能完成此操作。
还有其他方法可以做到这一点吗?
当我使用 Tomcat 时,我们过去常常直接更新 webapps
项目文件夹中的 .class
文件,这样我们就不需要重新构建整个应用程序。
I have an enterprise application running on a WebLogic server.
When I modify any Java class, I have to build the .ear
file and deploy to the server every time. Even for a small modification, I need to build the whole application and deploy to the server. The server is taking around 10 minutes to do this.
Is there any other way to do this?
When I was working with Tomcat, we used to update the .class
files directly in the webapps
project folder so that we didn't need to re-build the entire application.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
是的 - 有一个称为 FastSwap 的功能。
使用 FastSwap 加速开发
使用FastSwap 部署可最大限度地减少重新部署
Yes - there is a feature called FastSwap.
Using FastSwap to speed up dev
Using FastSwap Deployment to Minimize Redeployment
创建 weblogic 域时,您定义它将在开发或生产模式下启动。
要修改它,请将 config/config.xml 中的 production-mode-enabled 值更新为 true 或 false
有关更多详细信息,请检查以下链接或 Weblogic 文档。
Weblogic 10.3中DEV和PROD模式的区别
关于您关于Weblogic插件的问题,我想您正在谈论OEPE(Oracle Enterprise Pack for Eclipse),它将您的应用程序部署到将在dev或prod中运行的域根据config.xml中提到的模式
When you create a weblogic domain, you define it will be started in Development or Production mode.
To modify that, update the value of production-mode-enabled to true or false in config/config.xml
For more details check the following link or Weblogic documentation.
Difference between DEV and PROD mode in Weblogic 10.3
About your question on Weblogic Plugin, I suppose your're talking about OEPE (Oracle Enterprise Pack for Eclipse), which will deploy your application to a running domain that will be in dev or prod mode according to the mentioned in the config.xml