Use of Integrator in Hibernate 5



I’m working on a JBoss EAP 7 webapp, and I’m trying to use an Integrator implementation to register some Listeners. But for some reason, during the service loading, my Integrator is not considered. I’m using that implementation with a ‘META-INF/services/org.hibernate.integrator.spi.Integrator’ file pointing to my Integrator.

Is there any particularity to using that solution with Hibernate 5?


Most likely, it’s a ClassLoader issue and the application server does not get to load the META-INF/services/org.hibernate.integrator.spi.Integrator.

Try debugging and see why is that.