问题描述
我有一个Web项目,该项目需要WAR文件并将其部署在Websphere Application Server上。如何管理Websphere(可能在脚本的帮助下),以便WebSphere提取复制到服务器的WAR文件以自动使用WAR文件重新安装应用程序。该服务器是AIX机器。
我找到了一个包含该语句的脚本
AdminApplication.updateApplicationUsingDefaultMerge( "EAR_FILE","EAR_FILE_PATH")
Will the above statement work only for EAR file,and not WAR file and if so which statement(s) I can use for WAR file?
解决方法
这里是到知识中心的链接,没关系说EAR,同样适用于WAR:
-
AdminApp.install('location_of_ear.ear','[-node nodeName -cell cellName -server serverName]')
-
AdminApp.update('app1','app',['-operation','update','-contents','c:/apps/app1/newApp1.ear','-usedefaultbindings','-nodeployejb'])