camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gonzalo Vasquez <gvasq...@altiuz.cl>
Subject Re: Retrieving EXEC_EXIT_VALUE from exec endpoint
Date Thu, 14 Aug 2014 13:10:39 GMT
Thanks Willem,

I thought simplicity might have worked, but sadly no...switching from "out" to "in" to get
the header doesn't give me any output either :(


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
gvasquez@altiuz.cl
http://www.altiuz.cl
http://www.altiuzreports.com
  


El 13-08-2014, a las 21:46, Willem Jiang <willem.jiang@gmail.com> escribió:

> Hi,
> 
> Did you try to check the EXEC_EXIT_VALUE from in message?
> 
>  <camel:log message="Exit code: ${in.header.ExecBinding.EXEC_EXIT_VALUE}" /> 
> 
> You can find more information about in and out message here[1].
> 
> [1]http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html
> 
> 
> --  
> Willem Jiang
> 
> Red Hat, Inc.
> Web: http://www.redhat.com
> Blog: http://willemjiang.blogspot.com (English)
> http://jnn.iteye.com (Chinese)
> Twitter: willemjiang  
> Weibo: 姜宁willem
> 
> 
> 
> On August 14, 2014 at 2:52:07 AM, Gonzalo Vasquez (gvasquez@altiuz.cl) wrote:
>> Extra, I'm using camel 2.13.2
>> 
>> In my pom.xml:
>> 
>> 
>> org.apache.camel
>> camel-spring-ws
>> 2.13.2
>> 
>> 
>> 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
>> gvasquez@altiuz.cl
>> http://www.altiuz.cl
>> http://www.altiuzreports.com
>> 
>> 
>> 
>> El 13-08-2014, a las 14:09, gvasquez 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:
>>> 
>>> 
>>> 
>>> 
>>> exec://{{cmod.arsLoad}}?useStderrOnEmptyStdout=true&args=-f -g
>>> ${in.header.appGroup} -h {{cmod.host}} -u {{cmod.username}} -p
>>> {{cmod.password}} {{tmp.path}}/${id}
>>> 
>>> 
>>> I was trying to get the EXEC_EXIT_VALUE using something like:
>>> 
>>>> />
>>> 
>>> But since I got no output I even tried:
>>> 
>>>>> />
>>> 
>>> 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.
>> 
>> 
> 


Mime
View raw message