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+s465427n5743581...@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.