You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by millej <ja...@lmco.com> on 2009/03/13 00:23:44 UTC

Return of an unexpected message type

In my system I have XML messages that are passed between services as String
content in JMS/ActiveMQ messages. The problem is that the message is sent
back to the ReplyTo destination (the message source) in either
ActiveMQMessage or ActiveMQObjectMessage format. The messages have a body
type of string, so I was expecting to receive a TextMessage. Why would a
message with a string body be sent back as as a Message or ObjectMessage?

Here is some more information on the message flow:

1. The originating service uses the springframework JmsTemplate to send a
TextMessage to Camel.
2. Camel routes the message to a JBI service-unit, which performs some
operations based on the data.
3. The service-unit then uses JBI's DeliveryChannel to send the exchange
back to the ReplyTo with the outMessage set with string content.
4. This is where the message is received as an ActiveMQMessage or
ObjectMessage, which doesn't allow me to pull the XML string from the
message.

Any information on why the message isn't being sent as a TextMessage or
where the problem might lie would be greatly appreciated. Thanks.
-- 
View this message in context: http://www.nabble.com/Return-of-an-unexpected-message-type-tp22487202p22487202.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.