You can use scripting to configure a new topic connection factory for the WebSphere® MQ messaging provider.
Before starting this task, the wsadmin tool must be running.
The following example creates a topic connection factory, specifying custom connection data.
Using Jython:
wsadmin>AdminTask.createWMQConnectionFactory('"WebSphere MQ JMS Provider (cells/EXAMPLECell01|resources.xml#builtin_mqprovider)"', ' [-type TCF -name MQTopicConnectionFactory1 -jndiName jms/MQTopicConnectionFactory1 -description -qmgrName QueueManagerName -wmqTransportType BINDINGS_THEN_CLIENT -qmgrHostname HostName -qmgrSvrconnChannel ServerConnectionChannel ]')
The following example creates a topic connection factory, specifying CCDT connection data.
Using Jython:
wsadmin>AdminTask.createWMQConnectionFactory('"WebSphere MQ JMS Provider (cells/EXAMPLECell01|resources.xml#builtin_mqprovider)"', ' [-type TCF -name MQTopicConnectionFactory2 -jndiName jms/MQTopicConnectionFactory2 -description -ccdtUrl http://ClientChannelDefinitionTableURL -ccdtQmgrName QueueManager ]')
In this information ...Related tasks
| IBM Redbooks, demos, education, and more(Index) |