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 52A6A2D25 for ; Fri, 29 Apr 2011 10:56:30 +0000 (UTC) Received: (qmail 23797 invoked by uid 500); 29 Apr 2011 10:56:29 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 23765 invoked by uid 500); 29 Apr 2011 10:56:29 -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 23757 invoked by uid 99); 29 Apr 2011 10:56:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 10:56:29 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.210.45 as permitted sender) Received: from [209.85.210.45] (HELO mail-pz0-f45.google.com) (209.85.210.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 10:56:25 +0000 Received: by pzk30 with SMTP id 30so2567290pzk.32 for ; Fri, 29 Apr 2011 03:56:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=LxZtPiKERn2doRtTNezJwVpVtOsARBW1F9TBJpdK76U=; b=LhMfveGcZeWAB3wui150JjI8mWqWORlMwuXFoZ2Dj/fSV4XZP0c7vcLlBzyMfGmte2 8iJL3WdpcTia4UovuW8ZepnqhmVtmr3LCucvgs1cRKY1DkayL95hSmhN6qR+3q0+GPwJ OZkjyxv7iSqnyyhcSHyPflnd/Z8iRHNlHsS5E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=LiBY4EDXNqI6CYxQWA6xrtiWmtmrDPJn1DXlIw1TsqDJCJN6n8yzs5eGRBYcPImo1H PsTgah67iZuF/onCkG1LpYXxhWHO12yvCMA/uD5qoZIhDfbOaihDtzHRIBonb5kNh1hD 0+5GrrX+QtVzu1U4VIaTh7tYTb4UHlFGNjQSY= Received: by 10.68.54.65 with SMTP id h1mr5091862pbp.44.1304074565116; Fri, 29 Apr 2011 03:56:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.40.35 with HTTP; Fri, 29 Apr 2011 03:55:45 -0700 (PDT) In-Reply-To: <1304064166563-4358118.post@n5.nabble.com> References: <1304064166563-4358118.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 29 Apr 2011 12:55:45 +0200 Message-ID: Subject: Re: camel aop deprecated - what alternative exist To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2011 at 10:02 AM, Charles Moulliard wrote: > Hi, > > Since Camel 2.0, the component camel-aop is deprecated. I try to figure o= ut > which alternative we have to add a pointcut into a camel route > > ex : all my camel routes require that we update the status of the message > processed into the DB before to publish this message into the queue. To > achieve that, we can add manually the bean to be called for that purpose > into the camel route but that we would be better if I can define a pointc= ut > before the last processor (in this case the JMS producer) to modify the > camel route created at runtime > > Is the interceptor the way to go ? > Yeah you can use an interceptors for that. And you can limit based on endpoint uri, so the interceptor only triggers for JMS endpoints etc. Or whatever. > Regards, > > Charles =A0-- > View this message in context: http://camel.465427.n5.nabble.com/camel-aop= -deprecated-what-alternative-exist-tp4358118p4358118.html > Sent from the Camel - Users mailing list archive at Nabble.com. > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/