Extra, I'm using camel 2.13.2
In my pom.xml:
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-spring-ws</artifactId>
<version>2.13.2</version>
</dependency>
Running both in Apache Tomcat 7 (JDK 1.7.0_04-b21 in OSX) and IBM WebSphere
Application Server 8.5.5.2 (IBM JDK 1.7.0_45 in Debian Wheezy 7.2), with the
same results.
Regards,
Gonzalo Vásquez Sáez
Gerente Investigación y Desarrollo (R&D)
Altiuz Soluciones Tecnológicas de Negocios Ltda.
Av. Nueva Tajamar 555 Of. 802, Las Condes - CP 7550099
+56 2 335 2461
[email protected]
http://www.altiuz.cl
http://www.altiuzreports.com
El 13-08-2014, a las 14:09, gvasquez <[email protected]> escribió:
> 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&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&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.