RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-14 Thread Eelco Hillenius
Actually, the way I use it, I do not have the business logic components tied to the weblayer. I have two classes. One class implements the ThreadLocal pattern and is the class that my business components get their sessions from. The other class, which extends the first, implements javax.servlet.Fil

RE: [Hibernate] Unit Testing With ThreadLocal Sessions

2003-08-08 Thread Eelco Hillenius
I use the "Open Session in View" pattern for production sites. Works great. I did some serious stress testing with and without the pattern. The results did not show a performance penalty when using the pattern, and neither did I get deadlocks etc. I guess there could be a performance penalty if you