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: 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, richie.riviere@gmail.com
<richie.riviere@gmail.com> 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
http://camel.apache.org/camel-2130-release.html



>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/JPA-Consumed-tp5744640p5744699.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Mime
View raw message