Class MessagingMessageListenerAdapter

java.lang.Object
org.springframework.jms.listener.adapter.AbstractAdaptableMessageListener
org.springframework.jms.listener.adapter.MessagingMessageListenerAdapter
All Implemented Interfaces:
MessageListener, SessionAwareMessageListener<Message>, SubscriptionNameProvider

public class MessagingMessageListenerAdapter extends AbstractAdaptableMessageListener implements SubscriptionNameProvider
A MessageListener adapter that invokes a configurable InvocableHandlerMethod.

Wraps the incoming Message in Spring's Message abstraction, copying the JMS standard headers using a configurable JmsHeaderMapper.

The original Message and the Session are provided as additional arguments so that these can be injected as method arguments if necessary.

As of Spring Framework 5.3.26, MessagingMessageListenerAdapter implements SubscriptionNameProvider in order to provide a meaningful default subscription name. See getSubscriptionName() for details.

Since:
4.1
Author:
Stephane Nicoll, Sam Brannen
See Also: