Re: GWT-Hibernate application do not release session resources

2013-11-05 Thread aironesoft
Jens, thanks for your kind answer. I'll let you know if what you suggest will fix our problems. Il giorno lunedì 4 novembre 2013 19:28:04 UTC+1, Jens ha scritto: > > Is the HashMap get/put code inside getFactory(String persistenceUnit) > synchronized? If not there is a chance that you create m

Re: GWT-Hibernate application do not release session resources

2013-11-04 Thread Jens
Is the HashMap get/put code inside getFactory(String persistenceUnit) synchronized? If not there is a chance that you create more than one factory if you do not have an entry in your HashMap instance yet. HashMap is not thread safe and if x threads call getFactory(String) and you don't have an e

GWT-Hibernate application do not release session resources

2013-11-04 Thread aironesoft
We have developed a gwt-hibernate multi database application which is running on Glassfish and using Oracle datatabase. After a connection to a default database which is addressed by a default persistence unit like the following: org.hibernate.ejb.HibernatePersistence