Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 19561 invoked from network); 14 May 2008 17:04:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2008 17:04:20 -0000 Received: (qmail 54881 invoked by uid 500); 14 May 2008 17:04:06 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 54867 invoked by uid 500); 14 May 2008 17:04:06 -0000 Mailing-List: contact camel-user-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-user@activemq.apache.org Delivered-To: mailing list camel-user@activemq.apache.org Received: (qmail 54855 invoked by uid 99); 14 May 2008 17:04:06 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 10:04:06 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 May 2008 17:03:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JwKO5-0007aA-50 for camel-user@activemq.apache.org; Wed, 14 May 2008 10:03:33 -0700 Message-ID: <17236111.post@talk.nabble.com> Date: Wed, 14 May 2008 10:03:33 -0700 (PDT) From: runr To: camel-user@activemq.apache.org Subject: Re: Missing Headers in pipline with bean components In-Reply-To: <17234481.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: russ_evans@freddiemac.com References: <17234481.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org vmasina wrote: > > Is it by design Headers will not be propagated to next component in the > route, after the bean component in the route? > I had a similar issue and was advised that Headers tend to be specific to the endpoint technology and are lost when changing to a different endpoint technology. Instead, you should use an Exchange property to hold your application-specific information. The property will be maintained until it is explicitly removed. I think you want something like this: //SET PROPERTY BEFORE PROCESSING THE THIRD PARTY REQUEST from("activemq:queue:provider2Transformer") .process(new Processor(){ public void process(Exchange arg0) throws Exception { arg0.setProperty( "STUDENT_ID", studentId ); } //UPDATE STATUS AFTER PROCESSING THE THIRD PARTY REQUEST from("activemq:queue:updateThirdPartyProvisioningStatus") .process(new Processor(){ public void process(Exchange arg0) throws Exception { System.out.println( arg0.getProperty("STUDENT_ID")); } Russ -- View this message in context: http://www.nabble.com/Missing-Headers-in-pipline-with-bean-components-tp17234481s22882p17236111.html Sent from the Camel - Users mailing list archive at Nabble.com.