I would like to use OpenEJB in the jUnit tests of a maven based EJB3 project. Currently the container managed entity manager, which is injected via the @PersistenceContext annotation, is null. I am using OpenJPA for my JPA implementation.

The unit test logs the OpenEJB startup, ending with "INFO - OpenEJB Ready.", and I can get the entityManager by creating an EntityMangerFactory then creating the EntityManager from the factory.

I suspect a configuration error on my part.
Where should I look?

Suggestions?

Paul Spencer



Reply via email to