yeah, you miss something. load-by-id is a cheap operation. first of all session.get(id) will return the cached object within the same request. and even if the first level cache misses(the session) the second level cache will most likely have the object where it is kept across requests.

so if you pass the id to many panels within the same request the object is still only loaded once. within many requests the chances are good it is in second level cache. i wouldnt even attempt to use an orm solution without a good second level cache setup.

if you want extended sessions there is really nothing stopping you from doing that either. all you have to do is create the session yourself, disconnect it at the end of request and reconnect it at the beginning of another. all perfectly doable in wicket. then you just have to pass the session around from page to page.

-Igor


On 7/16/06, Iman Rahmatizadeh <[EMAIL PROTECTED]> wrote:
Juergen Donnerstag wrote:
> I don't think this is true if you create a hibernate session per http request
>
> Juergen
>
>
When you pass the object id instead of the object to the panels, each
panel will retrieve the object independent of others. Maybe a cache will
help. But still it goes through the persistence layer. Am I missing
something ?

Iman





-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to