如何使用 wlst 更新应用程序 [英] How to update application using wlst

查看:50
本文介绍了如何使用 wlst 更新应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从控制台如果 1 要更新应用程序,则 1 的作用是..1. 单击部署.2. 选择应用程序名称并单击更新选项.3.这里他可能会改变:

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.

我想通过提供新的源路径来使用 wlst 命令更新应用程序.可能吗?

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

喜欢

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

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

推荐答案

在这种情况下,我相信您正在寻找的命令是 redeploy:

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

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

如果遇到错误,可能需要将新的ear文件放到原来的位置或者先取消部署,然后再正常部署.

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.

参考:

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

另一个例子:

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

这篇关于如何使用 wlst 更新应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆