Reputation: 57
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.
Upvotes: 0
Views: 1542
Reputation: 86
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")
Upvotes: 0
Reputation: 3466
Read out my on IBM on this. This may be exactly what you wanted with little modification in it.
EDIT
You can find more options from this Link which are not covered in the script which I wrote. https://www-01.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.base.doc/ae/rxml_taskoptions.html
Upvotes: 0