Blogs : Archives
|
|
| < First recordings of my new band ... check it out! | My first YouTube video : Robert Plant cover song > |
|
The Open Session in View pattern is very popular when Hibernate is used in a web application. This allows you to safely use managed entities when your view is being rendered. At Terracotta, we're currently researching what other patterns are popular for Hibernate and how people apply them. One that I'm in particular looking into is the Extended Session pattern for long running conversations. This allows you to disconnect a Hibernate session in between requests and to store it in the HTTP session in the meantime. I'd like to know who's using the extended session pattern and what you use it for. To understand more about this, I developed a small example application to get a feel for the advantages, the benefits, the gotchas and the surprises. The application can be found below, it is inspired by snippets from Hibernate tutorials and example applications: http://svn.terracotta.org/svn/forge/projects/hibernate-disconnected/trunk/ The example uses only servlets, filters and Hibernate. It is a webapp that allows you to create events and add people to it over different requests. When an event has been created with all the relevant people, it can be committed in one step. The intermediate state is kept within the managed entities and the Hibernate session until it's flushed. This is what I found worth mentioning:
Totally unrelated but cool, you can use an |
|||
Comments |
|||
|
|||
|
|||
|
|||
|
|||
Add a new comment |
|||
| Comments on this blog entry have been closed. |
| < First recordings of my new band ... check it out! | My first YouTube video : Robert Plant cover song > |


