From users-return-78696-apmail-cocoon-users-archive=cocoon.apache.org@cocoon.apache.org Thu Apr 14 13:39:28 2005 Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 46233 invoked from network); 14 Apr 2005 13:39:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Apr 2005 13:39:28 -0000 Received: (qmail 48672 invoked by uid 500); 14 Apr 2005 13:39:05 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 48611 invoked by uid 500); 14 Apr 2005 13:39:05 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 48597 invoked by uid 99); 14 Apr 2005 13:39:05 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of bljohnson@gmail.com designates 64.233.170.204 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.204) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 14 Apr 2005 06:39:03 -0700 Received: by rproxy.gmail.com with SMTP id 40so304828rnz for ; Thu, 14 Apr 2005 06:39:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=uRsmDeWVCh7ew/jfYz0IPN5w6LOw8GIUCPAKbcyBrBj301tpjMp7GoqY+iEvVyrJ2MGmEzlAv4HTqfcRukbQzU/WA6cVokBmh1RrVYfLkK9QJZ40x+5QdgjInuOv/hEagFuyv7fNl93qoNhv6UPvfFYG4pxP5Fzy4I2lME54pXI= Received: by 10.38.198.5 with SMTP id v5mr2398265rnf; Thu, 14 Apr 2005 06:39:01 -0700 (PDT) Received: by 10.38.8.43 with HTTP; Thu, 14 Apr 2005 06:39:01 -0700 (PDT) Message-ID: <9a27dace050414063922a8e074@mail.gmail.com> Date: Thu, 14 Apr 2005 09:39:01 -0400 From: Brent Johnson Reply-To: Brent Johnson To: users@cocoon.apache.org Subject: Re: Using Hibernate via Java, not Flow In-Reply-To: <425D96FD.4000301@egonet.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <9a27dace05041313374dd95ecd@mail.gmail.com> <425D83C8.9090201@apache.org> <9a27dace05041313586f08910d@mail.gmail.com> <425D893B.9050802@mobilebox.pl> <9a27dace05041314126ea839ea@mail.gmail.com> <425D96FD.4000301@egonet.pl> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I searched the Wiki for "servletfilter", "servlet-filter", "servlet filter" and didn't find anything. Is there an example of closing Hibernate sessions using a servlet filter on the Wiki? I checked out the link someone posted earlier, and it describes using a class in the Spring framework to handle closing the sessions, along with a filter mapping. Thanks, - Brent On 4/13/05, Jakub Kaniewski wrote: > And how do you handle session closing? I observed that standart > HibernateUtil from Hibernate example doesn't work well in servlets. In > my opinion the only way out is using the servlet-filter described in wiki= . --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org