Thread:
 web.xml filters don't work 
 mschipperheyn   10 Sep 2005, 19:53 
 Spring's OpenSessionInViewFilter 
 rlubbat   13 Sep 2005, 03:46 
 Re: web.xml filters don't work 
 mgj2   13 Sep 2005, 11:44 
 Re: web.xml filters don't work 
 pksiv   14 Oct 2005, 13:27 
 ThreadLocal Sessions and jsp:include 
 rbellia   25 Oct 2005, 11:41 

Comment
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
From: mgj2 (13 Sep 2005, 11:44) Replies: 0, Views: 39672
Subject: Re: web.xml filters don't work
POST QUESTIONS ON THE FORUM! COMMENTS HERE SHOULD ADD VALUE TO THE
PAGE!Hi Marc,

I don't understand in what circumstances you think multiple sessions
will be opened. If you use ThreadLocal as in the widely publicised
HibernateUtil class, you should only ever receive the same session back
no matter how many times you call HibernateUtil.currentSession();

Am I understanding it correctly?

Thanks,

Michael
Prev. thread 
 Next thread
 
Prev. posting 
 Next posting
© Copyright 2006, Red Hat Middleware, LLC. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc. [Privacy Policy]