|
So far I always bound the persistence in a ServletModule (don't knwo
why, just never did it any other way). But having read the entire persistence code at least twice I cannot remember anything about request scope. The only piece of code related to the servlet extension is the PersistFilter which allows to have a unit of work span a request. The transactional annotation should be independent of the unit of work (it starts its own if non is running at the time the annotated method is executed). Also the unit tests in the persist extension are bound in abstract modules and not in servlet modules. So I don't think what you are seeing is expected behavior. What you could do is set a break point within the annotated method and check if the JpaLocalTxnInterceptor class is in the call stack. If this is not the case then the aop interceptor has not picket up the annotation. Another breakpoint in the constructor would allow you to find out who is instantiating the object. Good luck in finding the root of this issue Stephan On 12/05/2013 05:36 PM, Armin
Bahramshahry wrote:
-- You received this message because you are subscribed to the Google Groups "google-guice" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-guice. For more options, visit https://groups.google.com/groups/opt_out. |
- @Transactional commit issue Armin Bahramshahry
- Re: @Transactional commit issue Stephan Classen
- Re: @Transactional commit issue Robert Voliva
- Re: @Transactional commit issue Armin Bahramshahry
- Re: @Transactional commit issue Armin Bahramshahry
- Re: @Transactional commit issue Paul Bryan
- Re: @Transactional commit issue Armin Bahramshahry
- Re: @Transactional commit issue Stephan Classen
- Re: @Transactional commit issue Armin Bahramshahry
- Re: @Transactional commit issue Viraj Jasani
- Re: @Transactional commit iss... Thomas Broyer
- Re: @Transactional commit... Kasper Nielsen
- Re: @Transactional commit... Thomas Broyer
- Re: @Transactional commit... Viraj Jasani
