How to update application using wlst

不羁的心 提交于 2019-12-10 17:48:17

问题


From the console If 1 were to update the application what 1 does is.. 1. Click on deployments. 2. Selects the application name and clicks update option. 3. Here he may change:

i. Source Path
ii. Deployment Plan

Now in my application No Plan path is specified so to update the application I only change the source path. The application gets successfully updated.

I want to update the application using wlst command by giving the new source path. Is it possible?

like

updateApplication('backoffice','path\to\the\ear\file')


回答1:


In this case I believe the command you are looking for is redeploy:

progress = redeploy('myAppName', appPath='new/path/to/file')
progress.getState()

If you run into errors, you may need to put the new ear file into the original location OR execute an undeploy first, then do a normal deploy.

Reference:

http://docs.oracle.com/cd/E13222_01/wls/docs92/config_scripting/reference.html#wp1024321

Another example:

http://zachxu.blogspot.com/2010/08/how-to-use-weblogic-wlst-to-redeploy.html



来源:https://stackoverflow.com/questions/22379102/how-to-update-application-using-wlst

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