2 Replies Latest reply on Jul 28, 2009 9:59 AM by Adam Warski

    AuditEventListener with Unit test & EntityManager (Java SE)

    Stephan Oudmaijer Newbie

      I`m writing some unittests for my code, but I encounter a problem that the AuditEventListeners are never called on hibernate.ejb.event.*.

      I`m using the Hibernate EntityManager and JPA. When I run my code in an EJB container every thing works as expected. Are the hibernate events only fired when running in an EJB container?

      Has anyone succesfully managed to run Hibernate + Envers enabled Unit tests outside an EJB container?