Followers

Thursday, November 7, 2013

starting Managed server with WLST

from java.util import *
from javax.management import *
import javax.management.Attribute

print 'Starting the script .... '

connect('system','weblogic','t3://localhost:7001')


# Check if ms1 is already running
try:
        start('ms1','Server','t3://localhost:7005')
    exit()
except WLSTException:
    print 'The ms1 managed server already running.'
    pass




disconnect()

print 'End of script, exiting WLST...'
exit()

No comments:

Post a Comment