mrszj / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 0 forks source link

Singleton EntityManager #686

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am working on a desktop application and i am trying to use the jpa-persist 
module.

The provider configured by the JpaPersistModule creates an EntityManager per 
thread.

I want to have a single instance of the EntityManager in all the jvm. Is there 
a way to do that ?

Thanks.

Original issue reported on code.google.com by gonta...@gmail.com on 21 Feb 2012 at 3:35