-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: To integrate Hibernate with Tomcat, Hibernate hang in insert
PostPosted: Sun Apr 11, 2004 9:44 am 
Newbie

Joined: Sat Jan 24, 2004 8:54 am
Posts: 4
Location: Bangladesh
hi

hope all are well.

i'm working in a project where we are using

Tomcat 4.18
Struts
Hibernate 2.1
Oracle 9i


now i have some requirements and also some problems and it would be very much helpful for us if we get those solution.

1. now we are using Tomcat and Hibernate as standalone. here Hibernate creates a new session when first time database access is needed (if there is no old created session). but now i want some help to intregate Hibernate with Tomcat to create the session during Tomcat startup. and is this approach better than the previous one?

2. sometimes Tomcat shows as hang during an insert statement, though it performed some select statement before the insert. can anyone help us to get remedy from this problem and why this is happening?

3. i placed the log4j.properties in classpath and configured properly, it doesn't work. shows the following error -
log4j:WARN No appenders could be found for logger (net.sf.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
can anyone say how can i use log4j properly?

Looking forward to your valuable comments!

Best regards,.

tanver

_________________
I changed from Hibernate 1.2 to Hibernate 2.1 and now giving 'out of memory' error while performing 20 or more operations


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 20, 2004 10:10 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Don't share session between threads, please read the doc carefully and this page too http://www.hibernate.org/168.html

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.