org.springframework.jms.listener |
This package contains the base message listener container facility.
It also offers the DefaultMessageListenerContainer and SimpleMessageListenerContainer
implementations, based on the plain JMS client API.
|
Java Source File Name | Type | Comment |
AbstractJmsListeningContainer.java | Class | Common base class for all containers which need to implement listening
based on a JMS Connection (either shared or freshly obtained for each attempt).
Inherits basic Connection and Session configuration handling from the
org.springframework.jms.support.JmsAccessor base class.
This class provides basic lifecycle management, in particular management
of a shared JMS Connection. |
AbstractMessageListenerContainer.java | Class | Abstract base class for message listener containers. |
AbstractPollingMessageListenerContainer.java | Class | Base class for listener container implementations which are based on polling.
Provides support for listener handling based on
javax.jms.MessageConsumer ,
optionally participating in externally managed transactions.
This listener container variant is built for repeated polling attempts,
each invoking the
AbstractPollingMessageListenerContainer.receiveAndExecute method. |
DefaultMessageListenerContainer.java | Class | Message listener container variant that uses plain JMS client API, specifically
a loop of MessageConsumer.receive() calls that also allow for
transactional reception of messages (registering them with XA transactions).
Designed to work in a native JMS environment as well as in a J2EE environment,
with only minimal differences in configuration.
This is a simple but nevertheless powerful form of message listener container.
On startup, it obtains a fixed number of JMS Sessions to invoke the listener,
and optionally allows for dynamic adaptation at runtime (up until a maximum number).
Like
SimpleMessageListenerContainer , its main advantage is its low level
of runtime complexity, in particular the minimal requirements on the JMS provider:
Not even the JMS ServerSessionPool facility is required. |
DefaultMessageListenerContainer102.java | Class | A subclass of DefaultMessageListenerContainer that uses the JMS 1.0.2 specification,
rather than the JMS 1.1 methods used by SimpleMessageListenerContainer itself. |
SessionAwareMessageListener.java | Interface | Variant of the standard JMS
javax.jms.MessageListener interface,
offering not only the received Message but also the underlying
JMS Session object. |
SimpleMessageListenerContainer.java | Class | Message listener container that uses the plain JMS client API's
MessageConsumer.setMessageListener() method to
create concurrent MessageConsumers for the specified listeners.
This is the simplest form of a message listener container.
It creates a fixed number of JMS Sessions to invoke the listener,
not allowing for dynamic adaptation to runtime demands. |
SimpleMessageListenerContainer102.java | Class | A subclass of SimpleMessageListenerContainer that uses the JMS 1.0.2 specification,
rather than the JMS 1.1 methods used by SimpleMessageListenerContainer itself. |