public interface SessionAwareMessageListener (Code)
Variant of the standard JMS
javax.jms.MessageListener interface,
offering not only the received Message but also the underlying
JMS Session object. The latter can be used to send reply messages,
without the need to access an external Connection/Session,
i.e. without the need to access the underlying ConnectionFactory.
Implementors are supposed to process the given Message,
typically sending reply messages through the given Session.
Parameters: message - the received JMS message (never null) Parameters: session - the underlying JMS Session (never null) throws: JMSException - if thrown by JMS methods