-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3824943
By: nobody
hi
i developped web application with hibernate ,mysql and zk.
and i have one error
when i try tu lauch this application.in the first i try to write in the database the appliaction work fine.
and when i try for the second time ,it mark "cannot connect 0 ,Null.
in my code i just delation de code "HibernateUtil.getSessionFactory().close();
"
to close the session and the appliaction work fine.
i want to known if i'm not doing a mistake to delete that
sorry fot my bad english, i'm french
Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=3826099
By: henrichen
This is a Hibernate issue, NOT a ZK issue.
When you call HibernateUtil.getSessionFactory().close(); You release all resources regarding Hibernate.
See the following regarding how to use Hibnate in Tomcat:
http://www.hibernate.org/114.html
/henri
Asked: 2006-07-17 16:30:13 +0800
Seen: 384 times
Last updated: Jul 18 '06