Weblogic hot deployment during development (like WSSD/RAD)

旧城冷巷雨未停 提交于 2020-01-24 10:25:27

问题


All my previous projects were on websphere. I am right now in a team developing an application on weblogic.

In Websphere development (WSSD/RAD) the server was more "integrated" with the IDE, so a build could automatically trigger an incremental deployment to the (development/local) server.

Is such a setup possible in a weblogic environment? I googled for some weblogic plugins for eclipse, but I dont see this mentioned as a feature.

What is the best setup for development on weblogic+eclipse, so that the build/deploy/restart overhead is minimal during development?


回答1:


There is a WebLogic ant task for redeploying an application. I'm using this from a command-line build.xml as a separate 'redeploy' target, under WLS 9.2, but it can be added to Eclipse's build quite easily I think:

<!-- Redeploy the application to WebLogic Server -->
<wldeploy
    action="redeploy" verbose="true" name="<application name>"
    user="<admin user>" password="<admin password>"
    adminurl="t3://<admin server URL>" targets="<server name>" />

<server name> might be a managed server, or could be your admin server, depending on your configuration.

If you're using sessions and are going to be redeploying frequently, you may find it helpful add a persistent-store-type to your weblogic.xml to allow sessions to span redeploys, if you aren't doing so already - but as so often, depends what you're doing with your application.

Edited to add link to docs



来源:https://stackoverflow.com/questions/3202126/weblogic-hot-deployment-during-development-like-wssd-rad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!