Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D24F611568 for ; Thu, 14 Aug 2014 22:39:31 +0000 (UTC) Received: (qmail 70492 invoked by uid 500); 14 Aug 2014 22:39:31 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 70443 invoked by uid 500); 14 Aug 2014 22:39:31 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 70432 invoked by uid 99); 14 Aug 2014 22:39:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 22:39:31 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2014 22:39:05 +0000 Received: from sam.nabble.com ([192.168.236.26]) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XI3fK-0000V8-RM for users@camel.apache.org; Thu, 14 Aug 2014 15:38:38 -0700 Date: Thu, 14 Aug 2014 15:38:23 -0700 (PDT) From: gvasquez To: users@camel.apache.org Message-ID: <1408055903806-5755236.post@n5.nabble.com> In-Reply-To: <85138B39-EF7D-411C-8605-CAB165DC8168@altiuz.cl> References: <85138B39-EF7D-411C-8605-CAB165DC8168@altiuz.cl> Subject: Re: Exec endpoint not working correctly with recipientList MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Just built a workaround...using a dummy exec with no args, but setting both the executable and the args via de proper header prior to endpoint invocation, that way I finally DO GET the correct output headers, with the flexibility of a dynamic URL. Spring DSL: {{cmod.arsLoad}} -f -g ${in.header.appGroup} -h {{cmod.host}} -u {{cmod.username}} -p {{cmod.password}} {{tmp.path}}/${id} Output / log example: [14/08/14 18:35:06:177 CLT] 0000007d SystemOut O 2014-08-14 18:35:06,177 ERROR [ExecProducer ] - The command ExecCommand [args=[-f, -g, FONDO, -h, 192.168.10.245, -u, admin, -p, password, /tmp/ID-thor-altiuz-cl-51959-1408055697500-0-1], executable=/opt/ibm/ondemand/V9.0/bin/arsload, timeout=9223372036854775807, outFile=null, workingDir=null, useStderrOnEmptyStdout=false] returned exit value 11 [14/08/14 18:35:06:179 CLT] 0000007d SystemOut O 2014-08-14 18:35:06,179 INFO [example ] - Exchange[ , Id: ID-thor-altiuz-cl-51959-1408055697500-0-7 , ExchangePattern: InOptionalOut , Properties: {CamelCorrelationId=ID-thor-altiuz-cl-51959-1408055697500-0-2, CamelCreatedTimestamp=Thu Aug 14 18:35:05 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=doTry1], DefaultMessageHistory[routeId=route4, node=setHeader4], DefaultMessageHistory[routeId=route4, node=setHeader5], DefaultMessageHistory[routeId=route4, node=to7], DefaultMessageHistory[routeId=route4, node=to8]], CamelMulticastComplete=true, CamelMulticastIndex=2, CamelToEndpoint=log://org.apache.camel.example?multiline=true&showAll=true, isXalanTransformer=false, TryRouteBlock=true} , Headers: {appGroup=FONDO, breadcrumbId=ID-thor-altiuz-cl-51959-1408055697500-0-1, CamelExecExitValue=11, CamelExecStderr=null, CamelSpringWebserviceSoapHeader=javax.xml.transform.dom.DOMSource@492082f4} , BodyType: org.apache.camel.component.exec.ExecResult , Body: ARS1609W Specifying passwords on the command line is insecure due to the text being visible. See the Installation and Configuration Guide for your platform for information about the arsstash command or using Unified Login.ARS4315I Processing file >/tmp/ID-thor-altiuz-cl-51959-1408055697500-0-1FONDO< does not exist or user >admin< does not have permission to access the application groupARS4318E Processing failed for file >/tmp/ID-thor-altiuz-cl-51959-1408055697500-0-1