Comment by [email protected]:
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.
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.