Robert,
That's exactly what's happening. If you take a look at
http://servicemix.apache.org/34-exchanging-messages-with-other-jbi-services.html,
that shows you how you can use convertBodyTo() to change the data
representation before sending it to your ActiveMQ queue.
Gert
Robert Thullner wrote:
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