I am using the Thread Local Session Design Pattern as documented at:

http://hibernate.bluemars.net/42.html

This worked great in my web application when running through Tomcat.  Tomcat
uses Commons DBCP for connection pooling.

The old way I was doing it - now obviously kludgy - was to create a new
session factory everytime I initialized a DAO.  This worked great for unit
tests though, and it'd read from my hibernate.properties file for db
connection stuff.

Any tips/suggestions on enhancing HibernateSession.java to allow for both
types of configuration?

Thanks,

Matt


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to