1. Can I get a reference from a JPA bean to the EntityManager instance that manages it? stackoverflow.comThe question basically sums it up. Play framework has the JPABase class that JPA beans inherit from. This class has a method called em() which returns the bean's entityManager instance. Is there ... |
2. Straight answer: EntityManager across Session Beans? forum.hibernate.orgHi guys, I'm having a really hard time getting a straight answer to this question. There appears to be no doco anywhere on it. I will happily blog this for other people if somebody can resolve it for me! If I have two session beans, Foo and Bar, that both use @Resource to inject an EntityManager... Code: @Stateful class Foo { ... |