Date: 2004-12-06T05:23:58
   Editor: JohannesTextor <[EMAIL PROTECTED]>
   Wiki: Cocoon Wiki
   Page: CocoonAndHibernateTutorial
   URL: http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -6,16 +6,26 @@
 
 === What you will get from this page ===
 
-If you want to use Hibernate with Cocoon, but you don't know where to start,
-this Tutorial will give you some guidelines on how to create Webapps based on
-Hibernate, Flow, an SQL Database, and the Sitemap. This is Work in Progress. 
-So far, it covers the following topics:
+This page proposes a way of integrating Hibernate into Cocoon. There are 
other, probably better, ways to 
+accomplish this using additional frameworks like Spring or C3P0. However, I do 
believe that the approach presented
+here can be useful for those who are just starting to use Hibernate and don't 
want to learn yet another framework. 
+
+This is '''not''' an introduction to Hibernate or Cocoon itself. It just 
covers the specific issues of 
+
+The two main problems you have when integrating Hibernate into Cocoon are the 
following: 
+
+* Hibernate's builtin connection pool is for testing purposes only, so sooner 
or later you will have to use another one. 
+
+* When persistent objects are navigated by the view, closing Hibernate 
sessions from flowscript (=the control) 
+ may lead to exceptions due to race conditions. 
+
+The approach presented here addresses these problems by covering the following 
topics: 
 
 * Installing Hibernate 
 
 * Configuring Hibernate to use cocoon.xconf datasources
 
-* Setting up a Servlet Filter for managing Hibernate Sessions 
+* Setting up a Servlet Filter for managing the disposal of Hibernate sessions 
 
 === Your basic skills ===