Followers

Thursday, November 7, 2013

WLST Script to Deploy the applicaiton

save the below content as  deploy.py file and run like

java weblogic.WLST deploy.py


###################****##############****######################## 
# 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:/MADHU/NewFolder/wlst/antdep/Benifits/benefits.war', targets='Server1')


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

exit()

No comments:

Post a Comment