Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 92296 invoked from network); 12 Dec 2004 22:45:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 12 Dec 2004 22:45:58 -0000 Received: (qmail 56112 invoked by uid 500); 12 Dec 2004 22:45:53 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 56065 invoked by uid 500); 12 Dec 2004 22:45:52 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 56032 invoked by uid 99); 12 Dec 2004 22:45:52 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from 210-54-239-27.adsl.xtra.co.nz (HELO arjan) (210.54.239.27) by apache.org (qpsmtpd/0.28) with ESMTP; Sun, 12 Dec 2004 14:45:50 -0800 Received: from localhost ([127.0.0.1] helo=ARJAN) by arjan with smtp (Exim 4.43) id I8MSHO-0002LS-02 for dev@cocoon.apache.org; Mon, 13 Dec 2004 11:44:12 +1300 From: "Adam Ratcliffe" To: Subject: RE: [SOT] SingleThreaded components vs. Singletons Date: Mon, 13 Dec 2004 11:44:11 +1300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Importance: Normal In-Reply-To: <41BBF590.3090906@apache.org> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I'm using the turbine-fulcrum security library http://jakarta.apache.org/turbine/fulcrum/fulcrum-security-site/index.html, this makes uses of an Avalon Hibernate wrapper. I'm not sure if this component is actively maintained any longer as it has been deleted from the HibernateExt repository, however maven will download it when you build the security library. Cheers Adam -----Original Message----- From: Reinhard Poetz [mailto:reinhard@apache.org] Sent: Sunday, 12 December 2004 8:39 p.m. To: dev@cocoon.apache.org Subject: [SOT] SingleThreaded components vs. Singletons For a quick hack I wrote a singleton (simple Java class) that manages the Hibernate SessionFactory. As it is only a Cocoon/Hibernate-demo I haven't thought much about it, but if I use Hibernate in production, I would write a SingleThreaded Avalon component. I would do it because Cocoon is based on Avalon, but are there any technical reasons? -- Reinhard