Variant of the standard JMS {@link 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.
Supported by Spring's {@link DefaultMessageListenerContainer}and {@link SimpleMessageListenerContainer}, as direct alternative to the standard JMS MessageListener interface. Typically not supported by JCA-based listener containers: For maximum compatibility, implement a standard JMS MessageListener instead.
@author Juergen Hoeller
@since 2.0
@see AbstractMessageListenerContainer#setMessageListener
@see DefaultMessageListenerContainer
@see SimpleMessageListenerContainer
@see org.springframework.jms.listener.endpoint.JmsMessageEndpointManager
@see javax.jms.MessageListener