[阅读: 339] 2007-07-03 06:33:14
"""
This script starts an edit session, creates a WTC Server,
targets the WTC server to the server WLST is connected to and creates
a WTC service
"""
import sys
from java.lang import System
print "@@@ Starting the script ..."
url = sys.argv[1]
usr = sys.argv[2]
password = sys.argv[3]
wlsNWAddr = sys.argv[4]
tuxNWAddr = sys.argv[5]
connect(usr,password, url)
edit()
startEdit()
servermb=getMBean("Servers/examplesServer")
if servermb is None:
print '@@@ No server MBean found'
else:
....
try:
save()
activate(block="true")
print "@@@ WTC Server Resources created."
except:
print "@@@ Server Resources already exist or there was an error while trying to create new resources."
dumpStack()
民主不同于专制,不需要强加于人。--- 賴斯
大道之行也,天下为公,选贤与能,讲信修睦。故人不独亲其亲,不独子其子,使老有所终,壮有所用,幼有所长,矜、寡、孤、独、废疾者,皆有所养。男有分,女有归。货恶其弃於地也,不必藏於己;力恶其不出於身也,不必为己。是故,谋闭而不兴,盗窃乱贼而不作,故外户而不闭,是谓大同。--《礼运·大同篇》