Comment #2 on issue 739 by krupa.si...@gmail.com: Guice-persist: Injection of EntityManager outside a UnitOfWork can lead to never closed EntityManagers
https://code.google.com/p/google-guice/issues/detail?id=739

Can I go ahead and make a change like this.
public void begin() {

        if(null == entityManager.get()){
            entityManager.set(emFactory.createEntityManager());
        }
    }

in the class
com.google.inject.persist.jpa.JpaPersistService

to resolve this problem. what other problems it might cause?

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-guice-dev+unsubscr...@googlegroups.com.
To post to this group, send email to google-guice-dev@googlegroups.com.
Visit this group at http://groups.google.com/group/google-guice-dev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to