-->
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.  [ 3 posts ] 
Author Message
 Post subject: hibernate session and Tomcat
PostPosted: Tue Jun 03, 2008 2:35 am 
Newbie

Joined: Thu May 29, 2008 4:41 am
Posts: 4
I'm using hibernate in a webApplication developed on Tomcat 6.0.16.

I've read that in these cases it's better to leave Session management as a Tomcat task.
Anyway I read in this post http://www.hibernate.org/114.html:

Using Hibernate with Tomcat

If you use Hibernate on Tomcat you don't have to use Tomcat's JNDI-bound JDBC connections. You can let Hibernate manage the JDBC connection pool. This works on all versions of Tomcat and is very easy to configure.


I can't understand it's the better approach...any suggestion?

thanks in advance


Top
 Profile  
 
 Post subject: Best Approach: MVC
PostPosted: Tue Jun 03, 2008 3:30 am 
Newbie

Joined: Mon Jun 02, 2008 8:18 am
Posts: 2
Hi, I use MVC for web projects so everything related to the database, hibernate for instance, will be in the Model layer so if you manage everything from there you won`t have problems with sessions.

I donĀ“t know is you referred to that


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 9:59 am 
Newbie

Joined: Thu May 29, 2008 4:41 am
Posts: 4
so your suggestion it to manage Session directly in your application, without use facilities available in Tomcat ?

thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.