I have a route that uses RecipientList to call "exec" (see
http://stackoverflow.com/questions/4103499/apache-camel-exec-with-args) :

from("seda:start")
.log("******* Started single body : ${body}")
.recipientList(simple("exec:GetClaimList${header.osCmdSuffix}?useStderrOnEmptyStdout=true&args=${body.client}"))
.log("******* Executed OS cmd and received: ${body}")
.to("seda:finish");

When this is called on its own then it works fine and I get the output of
the OS Command as the body: eg:

"Executed OS cmd and received:
<claim-list><claim><clm-no>0952305</clm-no></claim></claim-list>"

However I have a parent route that splits a list of Clients up and calls
this route once for each. When this happens the output of the ReceipientList
"exec" is the body of the parent route: eg:

"Executed OS cmd and received:
[com.aon.cbs.clientrequest.clientrequestb...@18c3679,
com.aon.cbs.clientrequest.clientrequestb...@4c47db,
com.aon.cbs.clientrequest.clientrequestb...@18c74]"

The splitting is working ok as the first log statement is showing only 1
ClientRequestBean.

Can anyone tell me why this is occurring and what solution might work?

Thanks,

Damian.
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/RecipientList-repeating-parent-body-tp3266855p3266855.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to