@Brett: I don't understand the argument about classloader since the 1000 EntityManagerFactories have the same classloader. I agree that not all Hibernate users use that high number of EntityManagerFactories (I'm using "only" 5), but the memory consumption reduction is so high that it worth the effort.
|