0
votes

I'm using Websphere network deployment application server 8.5 on unix environment. I'm updating my existing applications on daily basis from admin console and i change the context root of each application depending upon the environment. I wanted to make this whole deployment process automated using only jythone/wsadmin/shell script. The script will accept the path of the ear which is going to reside on the unix server i.e. /export/opt/was85/temp and other various parameter like cluster name, server name and application name. Can anyone able to help me on this. thanks.

2

2 Answers

0
votes

This information is avaiable in the Infocenter for Websphere, where the jython examples are listed. Here is an example below with the context root update specified.

http://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.nd.doc/ae/welcome_nd.html


AdminApplication.addUpdateSingleModuleFileToAnAppWithUpdateCommand         
(appName, fileContent, contentURI, contextRoot)

Example usage [Windows]

AdminApplication.addUpdateSingleModuleFileToAnAppWithUpdateCommand      ("myApp","c:\DefaultWebApplication.war", "DefaultWebApplication.war", "/webapp/defaultapp")