]
Strong Liu resolved HHH-6792.
-----------------------------
Resolution: Fixed
connection leaks due to service registry is not destroyed
----------------------------------------------------------
Key: HHH-6792
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6792
Project: Hibernate Core
Issue Type: Bug
Reporter: Strong Liu
Assignee: Strong Liu
Fix For: 4.0.0.next
we found there are lots of open connections during running test suite on sybase DB.
this is caused by the _org.hibernate.service.spi.ServiceRegistryImplementor#destroy_ is
not called after each test.
a _org.hibernate.service.internal.StandardServiceRegistryImpl_ instance is shared between
_SessionFactory_s, and for each _SessionFactory_, it has its own
_org.hibernate.service.internal.SessionFactoryServiceRegistryImpl_ which inherits from the
shared _org.hibernate.service.internal.StandardServiceRegistryImpl_
and the lifecycle of _org.hibernate.service.internal.SessionFactoryServiceRegistryImpl_
is as same as _SessionFactory_ (get destroyed when _SessionFactory_ closed)
but the _org.hibernate.service.internal.StandardServiceRegistryImpl_ must be destroyed
manually.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: