Package javax.jms
JMS 1.1 API.
Package Specification
Related Documentation
Package Status
- Spec Defined
-
Interface Summary Interface Description BytesMessage ABytesMessage
object is used to send a message containing a stream of uninterpreted bytes.Connection AConnection
object is a client's active connection to its JMS provider.ConnectionConsumer For application servers,Connection
objects provide a special facility for creating aConnectionConsumer
(optional).ConnectionFactory AConnectionFactory
object encapsulates a set of connection configuration parameters that has been defined by an administrator.ConnectionMetaData AConnectionMetaData
object provides information describing theConnection
object.DeliveryMode The delivery modes supported by the JMS API arePERSISTENT
andNON_PERSISTENT
.Destination ADestination
object encapsulates a provider-specific address.ExceptionListener If a JMS provider detects a serious problem with aConnection
object, it informs theConnection
object'sExceptionListener
, if one has been registered.MapMessage AMapMessage
object is used to send a set of name-value pairs.Message TheMessage
interface is the root interface of all JMS messages.MessageConsumer A client uses aMessageConsumer
object to receive messages from a destination.MessageListener AMessageListener
object is used to receive asynchronously delivered messages.MessageProducer A client uses aMessageProducer
object to send messages to a destination.ObjectMessage AnObjectMessage
object is used to send a message that contains a serializable object in the Java programming language ("Java object").Queue AQueue
object encapsulates a provider-specific queue name.QueueBrowser A client uses aQueueBrowser
object to look at messages on a queue without removing them.QueueConnection AQueueConnection
object is an active connection to a point-to-point JMS provider.QueueConnectionFactory A client uses aQueueConnectionFactory
object to createQueueConnection
objects with a point-to-point JMS provider.QueueReceiver A client uses aQueueReceiver
object to receive messages that have been delivered to a queue.QueueSender A client uses aQueueSender
object to send messages to a queue.QueueSession AQueueSession
object provides methods for creatingQueueReceiver
,QueueSender
,QueueBrowser
, andTemporaryQueue
objects.ServerSession AServerSession
object is an application server object that is used by a server to associate a thread with a JMS session (optional).ServerSessionPool AServerSessionPool
object is an object implemented by an application server to provide a pool ofServerSession
objects for processing the messages of aConnectionConsumer
(optional).Session ASession
object is a single-threaded context for producing and consuming messages.StreamMessage AStreamMessage
object is used to send a stream of primitive types in the Java programming language.TemporaryQueue ATemporaryQueue
object is a uniqueQueue
object created for the duration of aConnection
.TemporaryTopic ATemporaryTopic
object is a uniqueTopic
object created for the duration of aConnection
.TextMessage ATextMessage
object is used to send a message containing ajava.lang.String
.Topic ATopic
object encapsulates a provider-specific topic name.TopicConnection ATopicConnection
object is an active connection to a publish/subscribe JMS provider.TopicConnectionFactory A client uses aTopicConnectionFactory
object to createTopicConnection
objects with a publish/subscribe JMS provider.TopicPublisher A client uses aTopicPublisher
object to publish messages on a topic.TopicSession ATopicSession
object provides methods for creatingTopicPublisher
,TopicSubscriber
, andTemporaryTopic
objects.TopicSubscriber A client uses aTopicSubscriber
object to receive messages that have been published to a topic.XAConnection TheXAConnection
interface extends the capability ofConnection
by providing anXASession
(optional).XAConnectionFactory TheXAConnectionFactory
interface is a base interface for theXAQueueConnectionFactory
andXATopicConnectionFactory
interfaces.XAQueueConnection AnXAQueueConnection
provides the same create options asQueueConnection
(optional).XAQueueConnectionFactory AnXAQueueConnectionFactory
provides the same create options as aQueueConnectionFactory
(optional).XAQueueSession AnXAQueueSession
provides a regularQueueSession
, which can be used to createQueueReceiver
,QueueSender
, andQueueBrowser
objects (optional).XASession TheXASession
interface extends the capability ofSession
by adding access to a JMS provider's support for the Java Transaction API (JTA) (optional).XATopicConnection AnXATopicConnection
provides the same create options asTopicConnection
(optional).XATopicConnectionFactory AnXATopicConnectionFactory
provides the same create options as aTopicConnectionFactory
(optional).XATopicSession AnXATopicSession
provides a regularTopicSession
. -
Class Summary Class Description QueueRequestor A queue requestorTopicRequestor Provides a basic request/reply layer ontop of JMS. -
Exception Summary Exception Description IllegalStateException This exception is thrown when a method is invoked at an illegal or inappropriate time or if the provider is not in an appropriate state for the requested operation.InvalidClientIDException This exception must be thrown when a client attempts to set a connection's client ID to a value that is rejected by a provider.InvalidDestinationException This exception must be thrown when a destination either is not understood by a provider or is no longer valid.InvalidSelectorException This exception must be thrown when a JMS client attempts to give a provider a message selector with invalid syntax.JMSException This is the root class of all JMS API exceptions.JMSSecurityException This exception must be thrown when a provider rejects a user name/password submitted by a client.MessageEOFException This exception must be thrown when an unexpected end of stream has been reached when aStreamMessage
orBytesMessage
is being read.MessageFormatException This exception must be thrown when a JMS client attempts to use a data type not supported by a message or attempts to read data in a message as the wrong type.MessageNotReadableException This exception must be thrown when a JMS client attempts to read a write-only message.MessageNotWriteableException This exception must be thrown when a JMS client attempts to write to a read-only message.ResourceAllocationException This exception is thrown when a provider is unable to allocate the resources required by a method.TransactionInProgressException This exception is thrown when an operation is invalid because a transaction is in progress.TransactionRolledBackException This exception must be thrown when a call toSession.commit
results in a rollback of the current transaction.