
Originally Posted by
jethrobakker
I prefer to use the correlationId in the JmsSenderConnection. It's easy to implement because we can query the properties of the request message.
Currently, the JmsReceiverConnection sets the correlation id to the message id of the client request:
Code:
responseMessage.setJMSCorrelationID(requestMessage.getJMSMessageID());
However, if I look at at Spring Core's JmsInvokerServiceExporter, I see that it sets the CorrelationId to the client's correlation id:
Code:
response.setJMSCorrelationID(requestMessage.getJMSCorrelationID());
Basically, I am not sure which option is correct, so I am open for suggestions here...