Comment by xiong.yu...@playfish.com:

"There is the hint "Note that if you make MyService? a @Singleton, then you should inject Provider<EntityManager> instead." IMHO this not only is true if MyService? is a @Singleton but also if MyOtherService? is a @Singleton and is using MyService? which itself is NOT @Singleton." That's true, it seems that guice get the first generated EntityManager that bind to Main thread.

For more information:
http://code.google.com/p/google-guice/wiki/JPA

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to 
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en.

Reply via email to