Update:

Just for testing, I tried sending the same message back in the response and
it worked fine. But If I'm creating a new ActiveMQMapMessage and set
following:

ActiveMQMapMessage responseMapMessage = new ActiveMQMapMessage(); //(I also
tried copying original message and setting below properties)
responseMapMessage.setContent(byteSequence);
responseMapMessage.storeContent();
responseMapMessage.setJMSDestination(destination4);
responseMapMessage.setJMSCorrelationID(activeMQMapMessage.getJMSCorrelationID());
responseMapMessage.setReplyTo(null);
responseMapMessage.setJMSReplyTo(null);
responseMapMessage.setMessageId(activeMQMapMessage.getMessageId());
responseMapMessage.setCorrelationId(activeMQMapMessage.getCorrelationId());

producer.send(responseMapMessage);

where producer is for queue: responseQ as mention above in the description,
then it doesn't work and the route times out for no response.

For investigation, I also tried adding a consumer for this queue and see If
I'm getting message on this queue and it was successful. The consumer was
able to consumer the message.

But then why camel activemq was not able to read and correlate that message
response with its original request in this case? And why it was able to
correlate when I sent the same activemqmapmessage (the one  sent by camel
itself as request) in the response by producer?
Is there any property which I'm missing to set in the response message?
Please let me know.
Thanks.

Yogesh



--
View this message in context: 
http://camel.465427.n5.nabble.com/ActiveMQ-InOut-JMS-messaging-with-external-system-tp5757630p5758084.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to