[ http://jira.jboss.com/jira/browse/HIBERNATE-12?page=comments#action_12316740 ] Steve Ebersole commented on HIBERNATE-12: -----------------------------------------
Its not that it does not close the Connection; its that the Connection gets closed too late. This only happens when you nest ejb calls where the first ejb gets the session (the connection has not yet been obtained) and then call into another ejb which gets the session and uses it. The JBoss CCM sees that the connection was obtained during ejb2's call, but was not returned to the data source prior to ejb2's return. I am in the process of upgrading the inetgration code to Hibernate3, where we implemented releasing of the jdbc connections much more eagerly in JTA environment. This new code will be available in CVS after JBoss 4.0.2 is released. > HibernateContext JDBC Connection > -------------------------------- > > Key: HIBERNATE-12 > URL: http://jira.jboss.com/jira/browse/HIBERNATE-12 > Project: Hibernate > Type: Bug > Environment: Mac OSX, JBoss 4.01sp1 > Reporter: Stephen Pearson > Assignee: Steve Ebersole > > Original Estimate: 1 hour > Remaining: 1 hour > > When using the HibernateContext getSession() function call, all works well > until the function call has finished, and then the underlying JDBC connection > is not closed. Therefore with each call to getSession within my EJB I > promptly receieve a "Closing a connection for you. Please close them > yourself." warning from the CachedConnectionManager. > Can the TransactionSynch call please close the JDBC connection when it > flushes and closes the Hibernate Session. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-development
