void
|
checkMessageListener(Object messageListener)
Check the given message listener, throwing an exception
if it does not correspond to a supported listener type.
|
void
|
commitIfNecessary(Session session, Message message)
Perform a commit or message acknowledgement, as appropriate.
|
void
|
doExecuteListener(Session session, Message message)
Execute the specified listener,
committing or rolling back the transaction afterwards (if necessary).
|
void
|
doInvokeListener(SessionAwareMessageListener listener, Session session, Message message)
Invoke the specified listener as Spring SessionAwareMessageListener,
exposing a new JMS Session (potentially with its own transaction)
to the listener if demanded.
|
void
|
doInvokeListener(MessageListener listener, Message message)
Invoke the specified listener as standard JMS MessageListener.
|
void
|
executeListener(Session session, Message message)
Execute the specified listener,
committing or rolling back the transaction afterwards (if necessary).
|
String
|
getDefaultSubscriptionName(Object messageListener)
Determine the default subscription name for the given message listener.
|
Destination
|
getDestination()
Return the destination to receive messages from.
|
String
|
getDestinationDescription()
Return a descriptive String for this container's JMS destination
(never null ).
|
String
|
getDestinationName()
Return the name of the destination to receive messages from.
|
String
|
getDurableSubscriptionName()
Return the name of a durable subscription to create, if any.
|
ExceptionListener
|
getExceptionListener()
Return the JMS ExceptionListener to notify in case of a JMSException thrown
by the registered message listener or the invocation infrastructure, if any.
|
Object
|
getMessageListener()
Return the message listener object to register.
|
String
|
getMessageSelector()
Return the JMS message selector expression (or null if none).
|
void
|
handleListenerException(Throwable ex)
Handle the given exception that arose during listener execution.
|
void
|
invokeErrorHandler(Throwable ex)
Invoke the registered ErrorHandler, if any.
|
void
|
invokeExceptionListener(JMSException ex)
Invoke the registered JMS ExceptionListener, if any.
|
void
|
invokeListener(Session session, Message message)
Invoke the specified listener: either as standard JMS MessageListener
or (preferably) as Spring SessionAwareMessageListener.
|
boolean
|
isAcceptMessagesWhileStopping()
Return whether to accept received messages while the listener container
in the process of stopping.
|
boolean
|
isExposeListenerSession()
|
boolean
|
isSessionLocallyTransacted(Session session)
Check whether the given Session is locally transacted, that is, whether
its transaction is managed by this listener container's Session handling
and not by an external transaction coordinator.
|
boolean
|
isSubscriptionDurable()
Return whether to make the subscription durable.
|
void
|
rollbackIfNecessary(Session session)
Perform a rollback, if appropriate.
|
void
|
rollbackOnExceptionIfNecessary(Session session, Throwable ex)
Perform a rollback, handling rollback exceptions properly.
|
void
|
setAcceptMessagesWhileStopping(boolean acceptMessagesWhileStopping)
Set whether to accept received messages while the listener container
in the process of stopping.
|
void
|
setDestination(Destination destination)
Set the destination to receive messages from.
|
void
|
setDestinationName(String destinationName)
Set the name of the destination to receive messages from.
|
void
|
setDurableSubscriptionName(String durableSubscriptionName)
Set the name of a durable subscription to create.
|
void
|
setErrorHandler(ErrorHandler errorHandler)
Set an ErrorHandler to be invoked in case of any uncaught exceptions thrown
while processing a Message.
|
void
|
setExceptionListener(ExceptionListener exceptionListener)
Set the JMS ExceptionListener to notify in case of a JMSException thrown
by the registered message listener or the invocation infrastructure.
|
void
|
setExposeListenerSession(boolean exposeListenerSession)
|
void
|
setMessageListener(Object messageListener)
Set the message listener implementation to register.
|
void
|
setMessageSelector(String messageSelector)
Set the JMS message selector expression (or null if none).
|
void
|
setSubscriptionDurable(boolean subscriptionDurable)
Set whether to make the subscription durable.
|
void
|
validateConfiguration()
Validate the configuration of this container.
|