camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <>
Subject Re: JPA when is @Consumed called - timing of it
Date Fri, 13 Dec 2013 07:50:13 GMT
On Thu, Dec 12, 2013 at 10:30 PM,
<> wrote:
> Actually I think I know the issue here. I'm guessing is probably related to
> the timing that the @consume method is called.
> In my route I don't set the workingProcessedIndicator on the ItemEntity
> until the very end of the route using my Bean createSimpleItem method.
> Perhaps when the @consume method is called that part of the route has not
> executed yet.
> In the documentation it says...
> @Consumed which will be invoked on your entity bean when the entity bean
> when it has been processed (and when routing is done)
> Does this mean it executes the entire route before running this method?

Yes its invoked at the very very end.

There is a new @PreConsumed or something like that annotation that is
invoked on the very very beginning :)
Its coming in Camel 2.13

> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at

Claus Ibsen
Red Hat, Inc.
Twitter: davsclaus
Author of Camel in Action:
Make your Camel applications look hawt, try:

View raw message