0

hibernate ,mysql ,canot connect

asked 2006-07-17 16:30:13 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2006-07-18 02:55:49 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


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

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2006-07-17 16:30:13 +0800

Seen: 384 times

Last updated: Jul 18 '06

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More