How to get the EJBContext from Guice

54 views Asked by At

I'm trying to create some integration tests for a j2ee application. The DAO layer requires a EJBContext so that it can call context.getUserTransaction() and utx.begin(). Using Guice i managed to get the EngityManager working. But the EJBContext is now null. Any ideas how to get this working.

@Resource
protected EJBContext context;
0

There are 0 answers