Robert,

Have you tried with the two convertBodyTo() statements as shown in the tutorial? I'm not sure Camel 1.2.0 (which is shipped with ServiceMix 3.2.1) support direct conversion from a JBI NormalizedMessage to String.

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 to an ActiveMQTextMessage on the message. What do you think about that?

I also tried the convertBodyTo(String.class) statement, but this does not
have any effect.
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





Reply via email to