I have a Spring application that sends JMS Messages using JmsTemplate (to QueueA). I have a requirement to wait specified time for an answer from other queue (QueueB) using JmsTemplate.setReceiveTimeout and JmsTemplate.receiveSelected(QueueB, messageSelector). If no synchronous reply is received, method will return and MDP (Implementation of MessageListener used by DefaultMessageListenerContainer) will handle message asynchronously.
My problem is that all received messages are going to MDP. Is this kind of scenario even possible?