Sun Java Message Service classes and interfaces

The following tables list the JMS objects contained in the package javax.jms. Interfaces marked with '*' are implemented by applications. Interfaces marked with '**' are implemented by application servers.

Table 33. Summary of interfaces in package javax.jms

Interface Description
BytesMessage A BytesMessage is used to send a message containing a stream of uninterpreted bytes.
Connection A JMS Connection is a client's active connection to its JMS provider.
ConnectionConsumer For application servers, Connections provide a special facility for creating a ConnectionConsumer.
ConnectionFactory A ConnectionFactory encapsulates a set of connection configuration parameters that an administrator has defined.
ConnectionMetaData ConnectionMetaData provides information that describes the Connection.
DeliveryMode Delivery modes supported by JMS.
Destination The parent interface for Queue and Topic.
ExceptionListener* An exception listener is used to receive exceptions thrown by Connections asynchronous delivery threads.
MapMessage A MapMessage is used to send a set of name-value pairs where names are Strings and values are Java primitive types.
Message The Message interface is the root interface of all JMS messages.
MessageConsumer The parent interface for all message consumers.
MessageListener* A MessageListener is used to receive asynchronously delivered messages.
MessageProducer A client uses a MessageProducer to send messages to a Destination.
ObjectMessage An ObjectMessage is used to send a message that contains a serializable Java object.
Queue A Queue object encapsulates a provider-specific queue name.
QueueBrowser A client uses a QueueBrowser to look at messages on a queue without removing them.
QueueConnection A QueueConnection is an active connection to a JMS point-to-point provider.
QueueConnectionFactory A client uses a QueueConnectionFactory to create QueueConnections with a JMS point-to-point provider.
QueueReceiver A client uses a QueueReceiver to receive messages that have been delivered to a queue.
QueueSender A client uses a QueueSender to send messages to a queue.
QueueSession A QueueSession provides methods to create QueueReceivers, QueueSenders, QueueBrowsers and TemporaryQueues.
ServerSession ** A ServerSession is an object implemented by an application server.
ServerSessionPool ** A ServerSessionPool is an object implemented by an application server to provide a pool of ServerSessions for processing the messages of a ConnectionConsumer.
Session A JMS Session is a single threaded context for producing and consuming messages.
StreamMessage A StreamMessage is used to send a stream of Java primitives.
TemporaryQueue A TemporaryQueue is a unique Queue object created for the duration of a QueueConnection.
TemporaryTopic A TemporaryTopic is a unique Topic object created for the duration of a TopicConnection.
TextMessage A TextMessage is used to send a message containing a java.lang.String.
Topic A Topic object encapsulates a provider-specific topic name.
TopicConnection A TopicConnection is an active connection to a JMS Pub/Sub provider.
TopicConnectionFactory A client uses a TopicConnectionFactory to create TopicConnections with a JMS Publish/Subscribe provider.
TopicPublisher A client uses a TopicPublisher for publishing messages on a topic.
TopicSession A TopicSession provides methods to create TopicPublishers, TopicSubscribers and TemporaryTopics.
TopicSubscriber A client uses a TopicSubscriber to receive messages that have been published to a topic.
XAConnection XAConnection extends the capability of Connection by providing an XASession.
XAConnectionFactory Some application servers provide support for grouping Java Transaction Service (JTS)-capable resource use into a distributed transaction.
XAQueueConnection XAQueueConnection provides the same create options as QueueConnection.
XAQueueConnectionFactory An XAQueueConnectionFactory provides the same create options as a QueueConnectionFactory.
XAQueueSession An XAQueueSession provides a regular QueueSession which can be used to create QueueReceivers, QueueSenders and QueueBrowsers.
XASession XASession extends the capability of Session by adding access to a JMS provider's support for the Java Transaction API (JTA).
XATopicConnection An XATopicConnection provides the same create options as TopicConnection.
XATopicConnectionFactory An XATopicConnectionFactory provides the same create options as TopicConnectionFactory.
XATopicSession An XATopicSession provides a regular TopicSession which can be used to create TopicSubscribers and TopicPublishers.

Table 34. Summary of classes in package javax.jms

Class Description
QueueRequestor JMS provides a QueueRequestor helper class to simplify making service requests.
TopicRequestor JMS provides a TopicRequestor helper class to simplify making service requests.



© IBM Corporation 1997, 2002. All Rights Reserved