Return-Path: Delivered-To: apmail-activemq-camel-user-archive@locus.apache.org Received: (qmail 15009 invoked from network); 17 Aug 2007 10:55:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Aug 2007 10:55:54 -0000 Received: (qmail 80280 invoked by uid 500); 17 Aug 2007 10:55:52 -0000 Delivered-To: apmail-activemq-camel-user-archive@activemq.apache.org Received: (qmail 80260 invoked by uid 500); 17 Aug 2007 10:55:52 -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 80251 invoked by uid 99); 17 Aug 2007 10:55:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Aug 2007 03:55:52 -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; Fri, 17 Aug 2007 10:55:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ILzUH-0005IW-Bj for camel-user@activemq.apache.org; Fri, 17 Aug 2007 03:55:29 -0700 Message-ID: <12197583.post@talk.nabble.com> Date: Fri, 17 Aug 2007 03:55:29 -0700 (PDT) From: Nick Outram To: camel-user@activemq.apache.org Subject: MethodName in header is ignored by beanRef() MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: apache@nickoutram.name X-Virus-Checked: Checked by ClamAV on apache.org Settup: from("seda:in").beanRef("myBean").to("seda:out); with "myBean" defined in the spring application context as a pojo implementing the meathod read(String) and sending a message: template.send("seda:in", new Processor() { public void process(Exchange e) { Message in = exchange.getIn(); in.setBody("Wibble"); in.setHeader(BeanProcessor.METHOD_NAME, "read"); } }); doesn't result in a call to the read() method of the bean. -- View this message in context: http://www.nabble.com/MethodName-in-header-is-ignored-by-beanRef%28%29-tf4285009s22882.html#a12197583 Sent from the Camel - Users mailing list archive at Nabble.com.