From: Matt R. <ma...@ra...> - 2003-01-02 20:26:22
|
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 |