camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
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

On Thu, Mar 21, 2013 at 2:28 PM, moxximus <> 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:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
FuseSource is now part of Red Hat
Twitter: davsclaus
Author of Camel in Action:

View raw message