[hibernate-dev] Is there a way to have ServiceContributor per SessionFactory/EMF instead of per application classloader?

Scott Marlow smarlow at redhat.com
Fri Sep 14 16:14:33 EDT 2018


I'm deploying an application with two persistence units however, the 
ServiceContributor contribute(StandardServiceRegistryBuilder) [1] is 
only being called once, instead of per SessionFactory/EMF (or so it seems).

Is there a way to have the contribute(StandardServiceRegistryBuilder) be 
called per SessionFactory/EMF instead?

Scott

[1] 
https://github.com/wildfly/wildfly/blob/master/jpa/hibernate5_3/src/main/java/org/jboss/as/jpa/hibernate5/service/ServiceContributorImpl.java#L28


More information about the hibernate-dev mailing list