The CONNECT command is used to open a connection to the enterprise messaging system.
The currently available vendor implementations are ActiveMQ, SonicMQ, Tibco Enterprise Messaging Service and WebSphereMQ.
It is possible to create more vendor implementations by writing a Java class that implements the JMSVendor interface.
The JMSFileService does a service properties lookup using the VENDOR keyword value to determine which Java class will be used to create the connection object.
vendor.sonicmq=com.acme.service.JMSVendorSonicMQ
vendor.tibcomq=com.acme.service.JMSVendorTibcoMQ
vendor.activemq=com.acme.service.JMSVendorActiveMQ
vendor.webspheremq=com.acme.service.JMSVendorMQSeries
Keyword values can also be passed to the CONNECT command by using a working list argument. The first column supplies the keyword name and the second column the keyword value.
The command keyword takes precedence over the working list keyword value entry.
Syntax:
|
Example
CONNECT VENDOR(WEBSPHEREMQ) HOST(LOCALHOST) CHANNEL(USERAGENT.CHANNEL) QUEUE-MANAGER(USERAGENT.QUEUE.MANAGER) QUEUE(USERAGENT.QUEUE) #WRKLIST(KEYWRD,KEYVAL)
CONNECT VENDOR(ACTIVEMQ) HOST(LOCALHOST) QUEUE(QUEUE_1) #WRKLIST(KEYWRD,KEYVAL)