Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/jmx
In directory sc8-pr-cvs1:/tmp/cvs-serv24602/hibernate/jmx
Modified Files:
HibernateService.java
Log Message:
* SessionFactory.close() now unbinds from JNDI
* added Session.remove()
* got rid of another unnecessry collection delete()
Index: HibernateService.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/jmx/HibernateService.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** HibernateService.java 8 Apr 2003 14:26:41 -0000 1.7
--- HibernateService.java 19 Apr 2003 03:26:07 -0000 1.8
***************
*** 142,146 ****
InitialContext context = NamingHelper.getInitialContext( getProperties() );
( (SessionFactory) context.lookup(boundName) ).close();
! context.unbind(boundName);
}
catch (Exception e) {
--- 142,146 ----
InitialContext context = NamingHelper.getInitialContext( getProperties() );
( (SessionFactory) context.lookup(boundName) ).close();
! //context.unbind(boundName);
}
catch (Exception e) {
|