Hi,
if I understand the sendAndReceive()-Method in the JmsOutboundGateway (Spring Integration 2.0) correctly, it first sends the message to its destination. Then it constructs a message consumer on the reply destination to wait for the answer.
I wonder if it would be possible to lost the reply message, in case (a) the reply-destination is a (non-temporarily) JMS Topic and (b) the reply comes (for whatever unlikely reason) so fast, that it arrives before the receive() on the message consumer is invoked.
Is it (theoretically) possible that this situation happens? Or do I miss something?
Thanks,
Nils


Reply With Quote
So, your question is valid. It seems that we would need to either create a durable subscriber or else have a separate thread for the consumer that starts prior to the producer sending the Message. Is that basically what you were suggesting?
