[hibernate-dev] Feedback on the idea of PersistenceProviderResolver.getPersistenceProviders() caching the same org.hibernate.ejb.HibernatePersistence class instance for multiple application deployments to share ...

Scott Marlow smarlow at redhat.com
Fri Sep 12 17:02:19 EDT 2014


What triggers Hibernate Validator to call 
PersistenceProviderResolver.getPersistenceProviders()?  Does this happen 
during the call to 
PersistenceProvider.createContainerEntityManagerFactory() or later after 
application deployment completes?

I'm looking at changing 
PersistenceProviderResolver.getPersistenceProviders() to cache the 
results on a per deployment basis but need to know when the first call 
will be made, so I don't break deployment of persistence providers in 
the deployed application.


More information about the hibernate-dev mailing list