No "exec" headers are set after an invocation of this endpoint, so I'm not
being able to decide what do upon process execution. I'm using Spring DSL
like this:

                        <camel:recipientList>
                                <camel:simple>
                               
exec://{{cmod.arsLoad}}?useStderrOnEmptyStdout=true&amp;args=-f -g
${in.header.appGroup} -h {{cmod.host}} -u {{cmod.username}} -p
{{cmod.password}} {{tmp.path}}/${id}</camel:simple>
                        </camel:recipientList>

I was trying to get the EXEC_EXIT_VALUE using something like:

<camel:log message="Exit code: ${out.header.ExecBinding.EXEC_EXIT_VALUE}" />

But since I got no output I even tried:

<camel:to uri="log:org.apache.camel.example?showAll=true&amp;multiline=true"
/>

But just got:

[13/08/14 16:57:55:250 CLT] 00000077 SystemOut     O 2014-08-13 16:57:55,249
INFO  [example                  ] - Exchange[
, Id: ID-thor-altiuz-cl-55058-1407963458446-0-7
, ExchangePattern: InOptionalOut
, Properties: {CamelCorrelationId=ID-thor-altiuz-cl-55058-1407963458446-0-7,
CamelCreatedTimestamp=Wed Aug 13 16:57:44 CLT 2014,
CamelMessageHistory=[DefaultMessageHistory[routeId=route1, node=multicast1],
DefaultMessageHistory[routeId=route1, node=to3],
DefaultMessageHistory[routeId=route4, node=to6],
DefaultMessageHistory[routeId=route4, node=setHeader3],
DefaultMessageHistory[routeId=route4, node=recipientList3],
DefaultMessageHistory[routeId=route4, node=to7]],
CamelMulticastComplete=true, CamelMulticastIndex=0,
CamelRecipientListEndpoint=exec:///opt/ibm/ondemand/V9.0/bin/arsload?args=-f+-g+CCMM+-h+192.168.10.77+-u+admin+-p+password+%2Ftmp%2FID-thor-altiuz-cl-55058-1407963458446-0-1&useStderrOnEmptyStdout=true,
CamelToEndpoint=log://org.apache.camel.example?multiline=true&showAll=true,
isXalanTransformer=false}
, Headers: {appGroup=CCMM,
breadcrumbId=ID-thor-altiuz-cl-55058-1407963458446-0-1,
CamelSpringWebserviceSoapHeader=javax.xml.transform.dom.DOMSource@4be1d2c4}
, BodyType: String
, Body: CCMM
, Out: null: 
]

So nothing seems to be coming out as an "exit value"....any help would be
appreciated



--
View this message in context: 
http://camel.465427.n5.nabble.com/Retrieving-EXEC-EXIT-VALUE-from-exec-endpoint-tp5755188.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to