Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 30165 invoked from network); 8 Jun 2009 06:46:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jun 2009 06:46:57 -0000 Received: (qmail 10649 invoked by uid 500); 8 Jun 2009 06:47:08 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 10563 invoked by uid 500); 8 Jun 2009 06:47:08 -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 List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 10555 invoked by uid 99); 8 Jun 2009 06:47:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2009 06:47:08 +0000 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of AJPEREZ@sadiel.es designates 62.81.202.67 as permitted sender) Received: from [62.81.202.67] (HELO mail.sadiel.es) (62.81.202.67) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2009 06:46:59 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C9E805.02678DD2" Subject: Avoid a class to be garbage collected Date: Mon, 8 Jun 2009 08:47:36 +0200 Message-ID: <3BDF182267B38B419F95D30CDCB7849FD6909B@svrcorreoeo.sadiel.es> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Avoid a class to be garbage collected Thread-Index: AcnoBQJiQaAliE0vSsKMU55HcIULtw== From: "Perez Guerrero, Antonio Javier" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C9E805.02678DD2 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, =20 Is there any way I can "bind" a class with Cocoon, or make it = persistent, so it's never destroyed by the garbage collector? =20 I've a singleton class containing some data structures (basically Maps), = which need to be shared between users (so, I can't store them in = session). I could write the data to a XML file, but I'd really prefer to = avoid it, because the data is going to change very frecuently. =20 Thanks ------_=_NextPart_001_01C9E805.02678DD2 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =0A= =0A= =0A= =0A=
=0A=
Hi,
=0A=
 
=0A=
Is there any way I can = "bind" a class with Cocoon, or make it persistent, so it's never = destroyed by the garbage collector?
=0A=
 
=0A=
I've a singleton class = containing some data structures (basically Maps), which need to be = shared between users (so, I can't store them in session). I could write = the data to a XML file, but I'd really prefer to avoid it, = because the data is going to change very frecuently.
=0A=
 
=0A=
Thanks
------_=_NextPart_001_01C9E805.02678DD2--