Example usage for org.springframework.jms.listener.adapter JmsResponse resolveDestination

List of usage examples for org.springframework.jms.listener.adapter JmsResponse resolveDestination

Introduction

In this page you can find the example usage for org.springframework.jms.listener.adapter JmsResponse resolveDestination.

Prototype

@Nullable
public Destination resolveDestination(DestinationResolver destinationResolver, Session session)
        throws JMSException 

Source Link

Document

Resolve the Destination to use for this instance.

Usage

From source file:org.springframework.jms.listener.adapter.AbstractAdaptableMessageListener.java

private Destination getResponseDestination(Message request, Message response, Session session, Object result)
        throws JMSException {

    if (result instanceof JmsResponse) {
        JmsResponse<?> jmsResponse = (JmsResponse) result;
        Destination destination = jmsResponse.resolveDestination(getDestinationResolver(), session);
        if (destination != null) {
            return destination;
        }//from   w  w  w.jav a  2s . com
    }
    return getResponseDestination(request, response, session);
}