camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: When are @Consumed methods called by the JPA component?
Date Thu, 21 Mar 2013 13:30:32 GMT
You can just call a method on your bean as the 1st thing in the Camel route.

But yeah we can also add support for a @PreConsumed annotation.
Fell free to log a JIRA ticket.

And as always contributions is welcome
http://camel.apache.org/contributing.html


On Thu, Mar 21, 2013 at 2:28 PM, moxximus <mccann.matt@gmail.com> wrote:
> Is there a reason it can't be called before the message is routed, even if
> its not guaranteed to finish before the message is routed?
>
> Executing @Consumed functions is part of the stated functionality of the JPA
> component. It seems logical that the work occurs while the message is still
> at such a node in the route. At the very least, if the function is started
> but not necessarily finished before sending out the message, one can use
> synchronization to force the completion of the function if so desired.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/When-are-Consumed-methods-called-by-the-JPA-component-tp5729562p5729615.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message