Uses of Package
jakarta.jms
Package
Description
The Jakarta Messaging API provides a common way for Java programs to create, send, receive and read an enterprise messaging system's messages.
-
ClassDescriptionA
BytesMessage
object is used to send a message containing a stream of uninterpreted bytes.ACompletionListener
is implemented by the application and may be specified when a message is sent asynchronously.AConnection
object is a client's active connection to its Jakarta Messaging provider.For application servers,Connection
objects provide a special facility for creating aConnectionConsumer
(optional).AConnectionFactory
object encapsulates a set of connection configuration parameters that has been defined by an administrator.AConnectionMetaData
object provides information describing theConnection
object.ADestination
object encapsulates a provider-specific address.If a Jakarta Messaging provider detects a serious problem with aConnection
object, it informs theConnection
object'sExceptionListener
, if one has been registered.A client using the simplified Jakarta Messaging API introduced for Jakarta Messaging 2.0 uses aJMSConsumer
object to receive messages from a queue or topic.AJMSContext
is the main interface in the simplified Jakarta Messaging API introduced for Jakarta Messaging 2.0.This is the root class of all checked exceptions in the Jakarta Messaging API.AJMSProducer
is a simple object used to send messages on behalf of aJMSContext
.This is the root class of all unchecked exceptions in the Jakarta Messaging API.AMapMessage
object is used to send a set of name-value pairs.TheMessage
interface is the root interface of all Jakarta Messaging messages.A client uses aMessageConsumer
object to receive messages from a destination.AMessageListener
object is used to receive asynchronously delivered messages.A client uses aMessageProducer
object to send messages to a destination.AnObjectMessage
object is used to send a message that contains a serializable object in the Java programming language ("Java object").AQueue
object encapsulates a provider-specific queue name.A client uses aQueueBrowser
object to look at messages on a queue without removing them.AQueueConnection
object is an active connection to a point-to-point Jakarta Messaging provider.A client uses aQueueConnectionFactory
object to createQueueConnection
objects with a point-to-point Jakarta Messaging provider.A client uses aQueueReceiver
object to receive messages that have been delivered to a queue.A client uses aQueueSender
object to send messages to a queue.AQueueSession
object provides methods for creatingQueueReceiver
,QueueSender
,QueueBrowser
, andTemporaryQueue
objects.AServerSession
object is an application server object that is used by a server to associate a thread with a Jakarta Messaging session (optional).AServerSessionPool
object is an object implemented by an application server to provide a pool ofServerSession
objects for processing the messages of aConnectionConsumer
(optional).ASession
object is a single-threaded context for producing and consuming messages.AStreamMessage
object is used to send a stream of primitive types in the Java programming language.ATemporaryQueue
object is a uniqueQueue
object created for the duration of aConnection
.ATemporaryTopic
object is a uniqueTopic
object created for the duration of aConnection
.ATextMessage
object is used to send a message containing ajava.lang.String
.ATopic
object encapsulates a provider-specific topic name.ATopicConnection
object is an active connection to a publish/subscribe Jakarta Messaging provider.A client uses aTopicConnectionFactory
object to createTopicConnection
objects with a publish/subscribe Jakarta Messaging provider.A client uses aTopicPublisher
object to publish messages on a topic.ATopicSession
object provides methods for creatingTopicPublisher
,TopicSubscriber
, andTemporaryTopic
objects.A client uses aTopicSubscriber
object to receive messages that have been published to a topic.TheXAConnection
interface extends the capability ofConnection
by providing anXASession
(optional).TheXAConnectionFactory
interface is a base interface for theXAQueueConnectionFactory
andXATopicConnectionFactory
interfaces.TheXAJMSContext
interface extends the capability ofJMSContext
by adding access to a Jakarta Messaging provider's support for the Java Transaction API (JTA) (optional).AnXAQueueConnection
provides the same create options asQueueConnection
(optional).AnXAQueueSession
provides a regularQueueSession
, which can be used to createQueueReceiver
,QueueSender
, andQueueBrowser
objects (optional).TheXASession
interface extends the capability ofSession
by adding access to a Jakarta Messaging provider's support for the Java Transaction API (JTA) (optional).AnXATopicConnection
provides the same create options asTopicConnection
(optional).AnXATopicSession
provides a regularTopicSession
.