activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From millej <jared.mil...@lmco.com>
Subject Return of an unexpected message type
Date Thu, 12 Mar 2009 23:23:44 GMT

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.


Mime
View raw message