> From: Yucca Nel [mailto:yucca...@live.co.za] > Subject: help with hibernate (Iknow it's off topic) > > I am horrified by the following code causing a untime exception
Someone call Stephen Hawking so we can get details about "untime"... > I want to make sure hibernate session is closed but even though the > session is null, it appears to be open still? What makes you think it's null? It looks like it's not null, but already closed. The following might be better: finally { if (session != null && !session.isClosed()) { session.close(); } } - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org