Issue Type: Bug Bug
Assignee: Unassigned
Components: entity-manager
Created: 14/Jan/13 6:47 AM
Description:

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.

Environment: Hibernte 3.6.10 and 4.x, Oracle 11 or 10 , Windows 7
Project: Hibernate ORM
Labels: jpa2 hibernate core
Priority: Major Major
Reporter: Eneias Camargo Tonhasca Junior
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira