WebSphere MQ JMS classes

 


Two packages contain the WebSphere MQ classes for Java Message Service that implement the Sun interfaces. Table 35 shows the interfaces implemented by classes in the com.ibm.mq.jms package; Table 36 shows the interfaces implemented by classes in the com.ibm.jms package.

You do not usually use the implementation classes directly; you program to the JMS interfaces. Many of the interfaces do not apply when running a publish/subscribe application on a direct connection to the IBM WebSphere MQ Event Broker. Where the names of implementation classes are listed, provider-specific methods are documented in this chapter.

Table 35. Summary of classes in package com.ibm.mq.jms

JMS interface Client or bindings implementation Direct connection to WebSphere MQ Event Broker implementation
Cleanup
Connection MQConnection Y
ConnectionConsumer MQConnectionConsumer
ConnectionFactory MQConnectionFactory
ConnectionMetaData MQConnectionMetaData Y
Destination MQDestination
MessageConsumer MQMessageConsumer
MessageProducer MQMessageProducer
Queue MQQueue
QueueBrowser MQQueueBrowser
QueueConnection MQQueueConnection
QueueConnectionFactory MQQueueConnectionFactory
MQQueueEnumeration
QueueReceiver MQQueueReceiver
QueueSender MQQueueSender
QueueSession MQQueueSession
Session MQSession Y
TemporaryQueue MQTemporaryQueue
TemporaryTopic MQTemporaryTopic Y
Topic MQTopic Y
TopicConnection MQTopicConnection Y
TopicConnectionFactory MQTopicConnectionFactory Y
TopicPublisher MQTopicPublisher Y
TopicSession MQTopicSession Y
TopicSubscriber MQTopicSubscriber Y
XAConnection MQXAConnection
XAConnectionFactory MQXAConnectionFactory
XAQueueConnection MQXAQueueConnection
XAQueueConnectionFactory MQXAQueueConnectionFactory
XAQueueSession MQXAQueueSession
XASession MQXASession
XATopicConnection MQXATopicConnection
XATopicConnectionFactory MQXATopicConnectionFactory
XATopicSession MQXATopicSession

Table 36. Summary of classes in package com.ibm.jms

JMS interface Client or bindings implementation Direct connection to WebSphere MQ Event Broker implementation
BytesMessage Y Y
MapMessage Y Y
Message Y Y
ObjectMessage Y Y
StreamMessage Y Y
TextMessage Y Y

A sample implementation of the following JMS interfaces is supplied in the WebSphere MQ classes for Java Message Service.

  • ServerSession

  • ServerSessionPool

See Application server sample code for more information

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.