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 2203820E4 for ; Thu, 5 May 2011 07:20:20 +0000 (UTC) Received: (qmail 97899 invoked by uid 500); 5 May 2011 07:20:19 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 97590 invoked by uid 500); 5 May 2011 07:20:17 -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 97580 invoked by uid 99); 5 May 2011 07:20:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 07:20:16 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of james@ractive.ch designates 80.190.246.92 as permitted sender) Received: from [80.190.246.92] (HELO server03.hostfactory.ch) (80.190.246.92) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 07:20:08 +0000 Received: (qmail 12103 invoked from network); 5 May 2011 09:19:47 +0200 Received: from gw.ptr-80-238-195-106.customer.ch.netstream.com (HELO ?10.1.1.1?) (80.238.195.106) by server03.hostfactory.ch with (AES256-SHA encrypted) SMTP; 5 May 2011 09:19:47 +0200 Message-ID: <4DC24F7B.8080800@ractive.ch> Date: Thu, 05 May 2011 09:19:23 +0200 From: Jean-Pierre Bergamin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 MIME-Version: 1.0 To: users@camel.apache.org Subject: Intercept send to beanRef endpoint Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello camel users We are trying to intercept calls from being sent to a bean endpoint in a route that is declared as: from("...").beanRef("myBean", "myMethod") The interception is declared as interceptSendToEndpoint("bean:myBean?method=myMethod"), but calls to myBean are not intercepted. When changing the route to from("...").to("bean:myBean?method=myMethod") the interception works. Is there a way to use interceptSendToEndpoint together with beanRef() instead of "bean:myBean..."? Best regards, Jean-Pierre Bergamin