activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulliard <cmoulli...@gmail.com>
Subject Re: Advisory Messages & Camel Route & BodyNull
Date Fri, 12 Mar 2010 10:02:54 GMT

I have adapted the Camel route and now I'm able to receive the message

<camel:route>
	<camel:from
uri="activemq:topic:ActiveMQ.Advisory.Consumer.Queue.*?mapJmsMessage=false"
/>
	<camel:to uri="log:com.elca?showAll=true&amp;multiline=true" />
</camel:route>

Here is an example for the destination :
topic://ActiveMQ.Advisory.Consumer.Queue.IN

10:28:44,140 | INFO  | tenerContainer-1 | elca                             |
rg.apache.camel.processor.Logger   88 | Exchange[
, Id:ID:dell-charles-1449-1268385927109-1:0:0:0:15
,
Properties:{CamelBinding=org.apache.camel.component.jms.JmsBinding@138113d,
CamelToEndpoint=log://com.elca?multiline=true&showAll=true}
, Headers:{JMSTimestamp=0, consumerCount=0, JMSReplyTo=null, JMSPriority=0,
JMSDeliveryMode=1, JMSMessageID=ID:dell-charles-1449-1268385927109-1:0:0:0
:15, JMSType=Advisory, JMSRedelivered=false, JMSExpiration=0,
JMSDestination=topic://ActiveMQ.Advisory.Consumer.Queue.IN,
JMSCorrelationID=null, origi
nBrokerId=ID:dell-charles-1449-1268385927109-0:0, JMSXGroupID=null,
originBrokerName=master, originBrokerURL=vm://master}
, BodyType:org.apache.activemq.command.ActiveMQMessage
, Body:ActiveMQMessage {commandId = 0, responseRequired = false, messageId =
ID:dell-charles-1449-1268385927109-1:0:0:0:15, originalDestination = null
, originalTransactionId = null, producerId =
ID:dell-charles-1449-1268385927109-1:0:0:0, destination =
topic://ActiveMQ.Advisory.Consumer.Queue.IN, tr
ansactionId = null, expiration = 0, timestamp = 0, arrival = 0, brokerInTime
= 1268386124125, brokerOutTime = 1268386124140, correlationId = null, rep
lyTo = null, persistent = false, type = Advisory, priority = 0, groupID =
null, groupSequence = 0, targetConsumerId = null, compressed = false, userID
 = null, content = null, marshalledProperties =
org.apache.activemq.util.ByteSequence@1b5b88c, dataStructure = RemoveInfo
{commandId = 0, responseRequ
ired = true, objectId = ID:dell-charles-1460-1268386104671-0:0:1:1,
lastDeliveredSequenceId = 0}, redeliveryCounter = 0, size = 0, properties =
{origi
nBrokerId=ID:dell-charles-1449-1268385927109-0:0, consumerCount=0,
originBrokerName=master, originBrokerURL=vm://master}, readOnlyProperties =
true, r
eadOnlyBody = true, droppable = false}
, Out: null]


Kind regards,

Charles

tjsnell wrote:
> 
> 
> On Mar 10, 2010, at 2:19 PM, cmoulliard wrote:
> 
>> I have defined a camel route to read messages published in the topics for
>> advisory
>> 
>> ex :
>> 	<camel:route>
>> 		<camel:from uri="activemq:topic:ActiveMQ.Advisory.Consumer.Queue.IN" />
>> 		<camel:to uri="log:com.elca?showAll=true&amp;multiline=true" />
>> 	</camel:route>
>> 
>> 
>> 
>> Surprisingly, the body receive is null
> 
> Advisory messages have a null body. All the information is passed in the
> headers.
> 
> Tracy
> 


-----
Charles Moulliard
SOA Architect

My Blog :  http://cmoulliard.blogspot.com/ http://cmoulliard.blogspot.com/  
-- 
View this message in context: http://old.nabble.com/Advisory-Messages---Camel-Route---BodyNull-tp27854538p27874117.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message