If you want to create or manage Message Bridge using Weblogic Scripting Tool.
After you have established an edit session, use the following steps configure JMS servers and system resources:
1. Get the WebLogic Server MBean object for the server you want to configure resources. For example:
servermb=getMBean("Servers/examplesServer")
if servermb is None:
print '@@@ No server MBean found'
2. Create your system resource. For example:
jmsMySystemResource = create(myJmsSystemResource,"JMSSystemResource")
3. Target your system resource to a WebLogic Server instance. For example:
jmsMySystemResource.addTarget(servermb)
4. Get your system resource object. For example:
theJMSResource = jmsMySystemResource.getJMSResource()
5. Create resources for the module, such as queues, topics, and connection factories. For example:
connfact1 = theJMSResource.createConnectionFactory(factoryName)
jmsqueue1 = theJMSResource.createQueue(queueName)
6. Configure resource attributes. For example:
connfact1.setJNDIName(factoryName)
jmsqueue1.setJNDIName(queueName)
7. Create a subdeployment name for system resources . See Understanding System Modules and Subdeployments.For example:
connfact1.setSubDeploymentName('
DeployToJMSServer1')
jmsqueue1.setSubDeploymentName('DeployToJMSServer1')
8. Create a JMS server. For example:
jmsserver1mb = create(jmsServerName,'JMSServer')
9. Target your JMS server to a WebLogic Server instance. For example:
jmsserver1mb.addTarget(servermb)
10. Create a subdeployment object using the value you provided for the sub-deployment-name
element. This step groups the system resources in module to a sub-deployment
element in the config.xml
. For example:
subDep1mb = jmsMySystemResource.createSubDeployment('
DeployToJMSServer1')
11. Target the subdeployment to a server resource such as a JMS server instance, WebLogic Server instance, or cluster. For example:
subDep1mb.addTarget(jmsserver1mb)
This will provide you more information:
http://e-docs.bea.com/wls/docs91/jms_admin/wlst.html#1046246
No comments:
Post a Comment