Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 32089 invoked from network); 28 Oct 2010 12:06:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Oct 2010 12:06:16 -0000 Received: (qmail 11882 invoked by uid 500); 28 Oct 2010 12:06:15 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 11725 invoked by uid 500); 28 Oct 2010 12:06:15 -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 11717 invoked by uid 99); 28 Oct 2010 12:06:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 12:06:14 +0000 X-ASF-Spam-Status: No, hits=4.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,SPF_HELO_PASS,SPF_NEUTRAL,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.139.236.158 is neither permitted nor denied by domain of sri.tech97@googlemail.com) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Oct 2010 12:06:09 +0000 Received: from sam.nabble.com ([192.168.236.26]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1PBREq-0006cT-GL for users@camel.apache.org; Thu, 28 Oct 2010 05:05:48 -0700 Date: Thu, 28 Oct 2010 05:05:48 -0700 (PDT) From: Sri To: users@camel.apache.org Message-ID: <1288267548502-3240403.post@n5.nabble.com> Subject: setting headers in destination endpoint for exec MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello All, I am using camel-exec for to execute a java command. version I am using are Camel 2.5-SNAPSHOT and JDK1.6 ver my requirement is set the parameters in the route from the headers I am getting from end point. following is the route i am using . from("direct:titan") .to("exec:java?workingDir="++"&useStderrOnEmptyStdout=true&args=-jar Titan.jar "+getFromHeader() ) .process(new Processor() { public void process(Exchange exchange) throws Exception { String processOutput = (String) exchange.getIn().getBody(String.class); Integer exitCode = (Integer) exchange.getIn().getHeader(ExecBinding.EXEC_EXIT_VALUE, Integer.class); logger.info(processOutput); logger.info("Exit code: " + exitCode); I need to pass the highlighted part from the headers. is there any way that I can send these parameters dynamically I mean creating the destination end point string dynamically. thanks in advance for your suggestions. Regards Sri -- View this message in context: http://camel.465427.n5.nabble.com/setting-headers-in-destination-endpoint-for-exec-tp3240403p3240403.html Sent from the Camel - Users mailing list archive at Nabble.com.