Thursday, February 26, 2009

WLST to create a FileStore and a SAF agent


cd('/')
cmo.createFileStore('FileStore_auto_1')

cd('/Deployments/FileStore_auto_1')
cmo.setDirectory('FileStore_auto_1')
set('Targets',jarray.array([ObjectName('com.bea:Name=AdminServer,Type=Server')], ObjectName))

cd('/')
cmo.createSAFAgent('SAFAgent-0')

cd('/SAFAgents/SAFAgent-0')
cmo.setStore(getMBean('/Deployments/FileStore_auto_1'))
set('Targets',jarray.array([ObjectName('com.bea:Name=AdminServer,Type=Server')], ObjectName))
cmo.setServiceType('Sending-only')





No comments: