camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marnold <malcolmarn...@gmail.com>
Subject Camel route JMS -> SOAP -> JMS
Date Wed, 25 Jan 2012 16:59:41 GMT
Hi,

I am trying to create a Camel route that will:

1) get JMS messages from a queue (using ActiveMQ),
2) send the message to a third-party SOAP web service,
3) take the response from that web service and,
4) put it onto another JMS queue

In addition, I'd like to populate the JMS correlation ID on the JMS message
queued at 4. with the JMS message ID of the message dequeued at 1.

This is my attempt:



What I find is that the JMS correlation ID is set correctly, but the body of
the JMS message is null.  When I set tracing on my Camel context I find I
get a BodyType:org.apache.camel.component.cxf.CxfPayload and a correctly
populated Body, but on the JMS enqueue I get BodyType:null, Body:[Body is
null].

Why is the body lost?  Is it because I am setting the header?  Please let me
know if I'm going about this in the wrong way or have made a fundamentally
incorrect assumption on the way Camel works.

Camel 2.9.0, ActiveMQ 5.5.1.

Thanks!





--
View this message in context: http://camel.465427.n5.nabble.com/Camel-route-JMS-SOAP-JMS-tp5430745p5430745.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message