camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pjotr <desaparec...@gmx.net>
Subject Message counter
Date Fri, 23 Apr 2010 08:09:45 GMT

Hi,

first of all I have to say I'm a beginner with ActiveMQ / Camel so please
have mercy on me 

I would like to store ActiveMQ messages in the filesystem with a specific
naming scheme [date]-[id]-[counter] 

Currently I got date and Id working - but I found no way to set a counter
:confused:

ActiveMQ 5.3 camel.xml:

...
<when>
<xpath>/event/qualifier = 'foo'</xpath>
<setHeader headerName="tmp_id"><xpath>/event/id</xpath></setHeader>
<to
uri="file://C:/tmp/?fileName=${date:now:yyyyMMddHHmmssSSS}-${in.headers.tmp_id}-${???}.xml"
/>
</when>
...

Any ideas??  
-- 
View this message in context: http://old.nabble.com/Message-counter-tp28337640p28337640.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message