camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JavaRat <>
Subject RE: Bridging the ActiveMQ with IBM Websphere using Camel
Date Wed, 24 Sep 2008 08:39:55 GMT


When we tried your JmsMessage camelJmsMessage = exchange.getIn().getBody();
we get an error in eclipse saying cannot convert Message to Object. We
therefor changed the code a little too the following:

Object myObj = exchange.getIn().getBody();
System.out.println("Class of exchange.getIn().getBody() is : " +
System.out.println("and it is : " + myObj);

Which resultet in the following output in our console when running the code: consoleoutput.jpeg 

Class of exchange.getIn().getBody() is : class java.lang.String
and it is : try 40

It might be worth a notice while testing we aim to have a standard
webbrowser from ActiveMQ using the http://localhost:8161/admin and putting
the message onto our first queue which we call 'put.queue' (see attached
picture) camelissue5.jpeg 

In the above test we typed "try 40" into the webbrowser and selected our
The first camel routing component delivers the message onto the and
browsing this message there it looks good.
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message