When  I use to("log:jms") in the Camel route, the following line is printed
by ServiceMix:
INFO  - jms - Exchange[JbiMessage:
[EMAIL PROTECTED]:
{}}]

I think the following happens. A JMS message is sent to the JMS consumer
service-unit. The message is marhalled to a NormalizedMessage and then
passed to Camel service-unit which sends a NormalizedMessage to a JMS queue
but does no marhalling on the message. 
What do you think about that?

I use the activemq jar files which are included in the ServiceMix
distribution in my message producers and receivers, so the message format
should be the same. 

Greetings,
Robert


Gert Vanthienen wrote:
> 
> Robert,
> 
> There probably is a difference in the data format being using by the 
> Camel and ServiceMix JMS receiver endpoints.  Could you add a 
> .to("log:jms") or something similar to determine what the data format of 
> the message body is?  You can also try explicitly converting the body 
> (e.g. using .convertBodyTo(String.class)) in your route just before you 
> send it to ActiveMQ.
> 
> Gert
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Camel-transports-in-ServiceMix-tp16222771s22882p16274450.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to