You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sheckey <vo...@gmail.com> on 2014/07/19 15:20:06 UTC
Re: Recieving BlobMessages routed with Camel
Hi Claus,
I was looking for similar topic on HornetQ but couldn't find it.
I am having route like this:
from("jms:IncomingMessages?mapJmsMessage=false").beanRef(bean,
"methodName");
My method implementation looks lilke:
public String methodName(@Body Object message) {
final org.hornetq.jms.client.HornetQMessage hqmessage =
(org.hornetq.jms.client.HornetQMessage) message;
final ClientMessage cliMessage = receivedNotification.getCoreMessage();
if I check cliMessage.getBodySize() I always get 0. Other parameters like
message id, priority etc are available but I am just having problems getting
the original message that I could convert to object that I expect.
At the sender side I am sending javax.jms.ObjectMessage that contains my
serializable objects.
Is this the proper way to do this, or am I missing out something here.
I was browsing as much as I could not to duplicate an existing issue, sorry
if this was already asked.
Regards
--
View this message in context: http://camel.465427.n5.nabble.com/Recieving-BlobMessages-routed-with-Camel-tp471389p5754034.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Recieving BlobMessages routed with Camel
Posted by sheckey <vo...@gmail.com>.
Hi,
please ignore my previous post. Simple conversion to HornetQObjectMessage
did the trick.
Regards
--
View this message in context: http://camel.465427.n5.nabble.com/Recieving-BlobMessages-routed-with-Camel-tp471389p5754035.html
Sent from the Camel - Users mailing list archive at Nabble.com.