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