Followers

Thursday, February 21, 2013

Deployment WLST Script

##################****##############****######################## 
# Generic script applicable on any Operating Environments (Unix, Windows) 
# ScriptName    : deploy.py 
# Author        : Madhusudhana Chilipi 
###############     Connecting to AdminConsole     ################################# 

print '*********connecting to the AdminConsole*********'
connect('weblogic','weblogic1','t3://localhost:7001')

###############     Deploying applicaiton1    ################################# 

print '*********deploying applicaiton1********'

deploy('benefits', 'C:/SOFT/benefits.war', targets='Server1')


###############     Starting the applicaitons   ################################# 
startApplication('benefits')

exit()

No comments:

Post a Comment