Return-Path: Delivered-To: apmail-cocoon-docs-archive@www.apache.org Received: (qmail 977 invoked from network); 29 Nov 2004 10:58:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Nov 2004 10:58:11 -0000 Received: (qmail 6820 invoked by uid 500); 29 Nov 2004 10:58:10 -0000 Delivered-To: apmail-cocoon-docs-archive@cocoon.apache.org Received: (qmail 6780 invoked by uid 500); 29 Nov 2004 10:58:10 -0000 Mailing-List: contact docs-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: docs@cocoon.apache.org Delivered-To: mailing list docs@cocoon.apache.org Received: (qmail 6755 invoked by uid 99); 29 Nov 2004 10:58:10 -0000 X-ASF-Spam-Status: No, hits=-10.0 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from minotaur.apache.org (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 29 Nov 2004 02:58:08 -0800 Received: (qmail 947 invoked from network); 29 Nov 2004 10:58:07 -0000 Received: from unknown (HELO minotaur.apache.org) (127.0.0.1) by 127.0.0.1 with SMTP; 29 Nov 2004 10:58:07 -0000 Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: docs@cocoon.apache.org To: docs@cocoon.apache.org Subject: =?iso-8859-1?q?=5BCocoon_Wiki=5D_Updated=3A__CocoonAndHibernateTutorial?= Date: Mon, 29 Nov 2004 10:58:07 -0000 Message-ID: <20041129105807.939.34525@minotaur.apache.org> X-Spam-Rating: 127.0.0.1 1.6.2 0/1000/N X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Date: 2004-11-29T02:58:07 Editor: JohannesTextor Wiki: Cocoon Wiki Page: CocoonAndHibernateTutorial URL: http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial no comment Change Log: ---------------------------------------------------------------------------= --- @@ -322,6 +322,29 @@ = =3D=3D=3D Installing the filter =3D=3D=3D = +In the file WEB-INF/web.xml, insert the following code avove the "Servlet = Configuration" part: (as always, insert +your favourite package name) = + +{{{ + + + + hibernateFilter + org.test.HibernateFilter + + + + hibernateFilter + + /* + +}}} + +This tells the container to invoke our filter on ALL requests. Of course, = depending on your application, this is = +probably overkill since you don't want to create a Hibernate session every= time your cocoon servlet is serving a = +GIF image. So please adapt this to suit your needs. For example, you might= use the url-pattern "*.html". = + + =3D=3D Appendix =3D=3D = =3D=3D=3D Links to other information sources =3D=3D=3D