camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gvasquez <gvasq...@altiuz.cl>
Subject Re: Retrieving EXEC_EXIT_VALUE from exec endpoint
Date Thu, 14 Aug 2014 15:24:36 GMT
Debugging camel's java code I found out that the actual header name is "CamelExecExitValue",
the other was just the Java constant name for such header. Headers ARE in fact being correctly
set in java code, but the just don't appear in next spring DSL instruction.

Could anyone help me please?

El 13-08-2014, a las 21:53, Willem.Jiang [via Camel] <ml-node+s465427n5755196h91@n5.nabble.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 ([hidden email]) 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 
> > [hidden email] 
> > 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. 
> >   
> >  
> 
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/Retrieving-EXEC-EXIT-VALUE-from-exec-endpoint-tp5755188p5755196.html
> To unsubscribe from Retrieving EXEC_EXIT_VALUE from exec endpoint, click here.
> NAML





--
View this message in context: http://camel.465427.n5.nabble.com/Retrieving-EXEC-EXIT-VALUE-from-exec-endpoint-tp5755188p5755224.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message