Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96E6A10D78 for ; Wed, 20 Nov 2013 20:00:55 +0000 (UTC) Received: (qmail 44294 invoked by uid 500); 20 Nov 2013 20:00:55 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 44241 invoked by uid 500); 20 Nov 2013 20:00:54 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 44233 invoked by uid 99); 20 Nov 2013 20:00:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 20:00:54 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,URI_HEX X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of florent.vansiliette@swift.com) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Nov 2013 20:00:48 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VjDwo-00081G-Ei for dev@camel.apache.org; Wed, 20 Nov 2013 12:00:26 -0800 Date: Wed, 20 Nov 2013 12:00:26 -0800 (PST) From: flovansi To: dev@camel.apache.org Message-ID: In-Reply-To: References: <1384964944099-5743580.post@n5.nabble.com> Subject: Re: Consume from a java bean MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_191216_21741055.1384977626430" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_191216_21741055.1384977626430 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I m not sure it'll be possible with the @Consume annotation. I want to be able to create an exchange in the POJO and to manage manually the JMS transaction when consuming message. If I've well understood, the @Consume annotation cannot fit in this case as we have to specify an endpoint to consume from. Thank you for your answer anyway and please correct me if I'm wrong. Florent On 20 nov. 2013, at 17:33, "Claus Ibsen-2 [via Camel]" < ml-node+s465427n5743581h88@n5.nabble.com > wrote: Hi Yeah see http://camel.apache.org/pojo-messaging-example.html You dont need a route if you use a pojo with the @Consume annotation as shown in that example. On Wed, Nov 20, 2013 at 5:29 PM, flovansi < [hidden email] > wrote: > Hi all, > > Is it possible to consume message from a Java bean? > > Something like: > > <from ref="myBean"/> > > where myBean could be a custom bean to get JMS message from a queue, or > anything you can think of. > > I know that I can achieve that by creating custom Camel Component but a Java > Bean could be simpler in my case. > > If it's not possible, is there any other way to achieve that? > > Thank you, > > Florent > > > > -- > View this message in context: http://camel.465427.n5.nabble.com/Consume-from-a-java-bean-tp5743580.html > Sent from the Camel Development mailing list archive at Nabble.com . -- Claus Ibsen ----------------- Red Hat, Inc. Email: [hidden email] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen If you reply to this email, your message will be added to the discussion below: http://camel.465427.n5.nabble.com/Consume-from-a-java-bean-tp5743580p5743581.html To unsubscribe from Consume from a java bean, click here . NAML -- View this message in context: http://camel.465427.n5.nabble.com/Consume-from-a-java-bean-tp5743580p5743587.html Sent from the Camel Development mailing list archive at Nabble.com. ------=_Part_191216_21741055.1384977626430--