>Hmm, excuse me... but it seems to be that you could accomplish exactly
>what you are asking for by hooking beginRequest(), endRequest() methods
>to open and close your Hibernate session.

What methods are you referring to? I can't find these two in Wicket.

>Hibernate conventions discourage the use of long-term sessions so this is
>actually what you should be doing.

Actually the Hibernate guys are recommending the use of 'application 
transactions', i.e. long-term sessions that are only disconnected while waiting 
for new user input.

>Opening a new Session is dirt cheap.

Yes, a session is cheap, but IMHO working with new sessions is not easy. 
Attaching/Detaching objects (update, lock, ...) is difficult and can completely 
be spared with disconnected sessions.

Sven


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to