This is not how Freeroller was doing things. This is what they're moving to. The original poster said he was using a ThreadLocal Session, which would mean one Session created and used throughout one request. The problem Roller was having was that they were porting from a DAO model and every time they wanted to look up anything from the database or store anything they would dip into the DAO layer, which, with Hibernate, would create a new Session and flush it at the end of the DAO call... Creating a new session and using a connection is not necessarily a huge overhead considering connection pooling, but flush()ing IS an expensive operation with Hibernate, so you should only do it once, if at all (if you haven't changed anything, then skip it)
Conductor is just starting to get started... I've gotten a little busy trying to get WW2 out... I keep trying to get Matt Porter and Mike Cannon-Brookes to start doing the Conductor work for me, but they haven't fallen for it yet :-) > -----Original Message----- > From: James Cook [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2003 6:43 AM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] hibernate/webwork2 best practices > > > > currently in my daos i create a session object for every > > dao operation like dao.save dao.load, etc > > I think this is exactly what caused the freeroller > application (using Hibernate also) to suffer some extreme > scalability failures. > > As far as best practices go, Jason has started Conductor that > is supposed to provide a framework (built on top of WebWork) > that integrates Hibernate and some user-management features. > Basically a starting point for app developers. There isn't > much there yet however. > http://conductor.dev.java.net I found the xPetstore an excellent source of good application design. It uses WebWork (1.3) and Hibernate. http://xpetstore.sourceforge.net/ Can you elaborate a little more regarding this statement? > but thats going to cause some problems anyways > if the session were to be put in a un-usable state ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork