Hi,
When I execute this code:
EntityManager em = EntityManagerProvider.getEntityManagerFactory().createEntityManager();
em.getTransaction().begin();
em.getTransaction().commit();
On 3.6.10 version the connection with database is relesead at last line, I mean, I can request 1000 times and the connections never excced the max_size on connection pool delimited by C3P0 configuration on persistence.xml
But, if I use 4.1.9 version, For each time that I make a request to this code on the same managed bean a connection is incremented and if the max_size is 10 I only can make 10 calls
This managed bean is session scope.
|