camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darwish <>
Subject SetHeader thread ( route) safety !!?
Date Thu, 15 Aug 2013 07:38:45 GMT
Hi ,

I have two route A and B , route A process message for ftp point and push it
to AMQ  queue after attaching actionId as header , route B pull that message
and continue the processing as bellow :

<route id="A">
<from uri="ftp">
<process ref="doStuff" />
<setHeader headerName="actionId">
<log message="${header.actionId}"/>
<to uri="JMS"/>

<route id="B">
<from uri="JMS"/>

<setHeader headerName="actionId">
<log message="${header.actionId}"/>
<process ref="doAnotherStuff" />

The result is random , for individual message processing ,things run as
expected, but in load test where many messages submitted and two route run
concurrently,randomly header value are mixed, route A  actionId header value
populated with route B header value  and sometimes route B header value
populated  with route  A header value A header value ! 

any idea ?

camel 2.11.0 
AMQ  6.8

Othman Darwish
ProgressSoft Corp.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message