|
| Re: WLST to create a JMS FileStore |
 |
Mon, 24 Mar 2008 06:51:38 -070 |
siva01 you might be aware of this, but for the benefit of other readers I'd like
to point out that the WebLogic Server Administration Console has a record
facility that can capture a configuration interaction as a WLST script that can
be edited or used directly. Using the console to create a JMS server and
clicking on the "Create a new Store" button in that dialog results in
the following script:
cd('/')
cmo.createFileStore('MyFileStore')
cd('/FileStores/MyFileStore')
cmo.setDirectory('c:\\temp')
set('Targets',jarray.array([ObjectName('com.bea:Name=AdminServer,Type=Server')],
ObjectName))
cd('/')
cmo.createJMSServer('MyJMSServer')
cd('/Deployments/MyJMSServer')
cmo.setPersistentStore(getMBean('/FileStores/MyFileStore'))
set('Targets',jarray.array([ObjectName('com.bea:Name=AdminServer,Type=Server')],
ObjectName))
While there are limitations with this (you can't record security changes or
deployment plan edits), this can be a considerable time saver in the generation
of new WLST scripts.
For more details, please see:
http://e-docs.bea.com/wls/docs100/ConsoleHelp/taskhelp/console/RecordWLSTScripts
.html
--
Loren Konkus
Staff Software Engineer
|
| Post Reply
|
|
|
|
|
|
|
|
|
|