I use
net.digisys.common.spring.hibernate.HibernateSessionFilter
to manage the hibernate session. It will open a
session before tapestry process the process, and will
close the session after tapestry rendering. 
According to Gavin, session is a lightweight object,
so it is safe to generate and destroy for each
request.


Yunfeng Hou

--- Lennart Benoot <[EMAIL PROTECTED]> wrote:

> 
> Hi Tapestronians,
> 
> After a year of programming on a pernonal web
> project, I found that the time has come to do some
> refactoring. One of the subsystems that really need
> to be looked at is hibernate.  I'm trying to decide
> on a pattern. 
> 
> I was thinking about finding some inspiration in
> kickstart but I came across this :
> >It has proven suitable for low to medium load (some
> 100 concurrent users) web-apps typically >found on
> corporate extranets. It's characteristics are...
> 
> Is session-per-request typically capable of handling
> higher loads?
> 
> Does anybody have an example implementation of
> session-per-request? Or, where can do the creation
> and the closing of the session best in tapestry. I
> dit found a class on the Hibernate site that
> provides the functionality to manage the sessions
> (create, get, close) per thread.
> And, by the way, if you would use non-blocking IO
> such as in Jetty, what would the impact be? Failure
> probably.
> 
> Thanks,
> Lennart 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to