Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 97992 invoked from network); 29 Mar 2011 10:30:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Mar 2011 10:30:53 -0000 Received: (qmail 59172 invoked by uid 500); 29 Mar 2011 10:30:53 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 59153 invoked by uid 500); 29 Mar 2011 10:30:53 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 59145 invoked by uid 99); 29 Mar 2011 10:30:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 10:30:53 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mueller@adobe.com designates 64.18.1.27 as permitted sender) Received: from [64.18.1.27] (HELO exprod6og111.obsmtp.com) (64.18.1.27) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Mar 2011 10:30:47 +0000 Received: from source ([193.104.215.16]) by exprod6ob111.postini.com ([64.18.5.12]) with SMTP ID DSNKTZG0wUnLRgSvUXsvITozsLWuH0xtGrW8@postini.com; Tue, 29 Mar 2011 03:30:26 PDT Received: from inner-relay-1.corp.adobe.com (inner-relay-1.corp.adobe.com [153.32.1.51]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id p2TAUMne011605 for ; Tue, 29 Mar 2011 03:30:23 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id p2TAUEPZ004940 for ; Tue, 29 Mar 2011 03:30:20 -0700 (PDT) Received: from eurcas01.eur.adobe.com (10.128.4.27) by nahub02.corp.adobe.com (10.8.189.98) with Microsoft SMTP Server (TLS) id 8.3.137.0; Tue, 29 Mar 2011 03:30:14 -0700 Received: from eurmbx01.eur.adobe.com ([10.128.4.32]) by eurcas01.eur.adobe.com ([10.128.4.27]) with mapi; Tue, 29 Mar 2011 11:30:03 +0100 From: Thomas Mueller To: "users@jackrabbit.apache.org" Date: Tue, 29 Mar 2011 11:30:00 +0100 Subject: Re: All in-memory and unit/integration tests Thread-Topic: All in-memory and unit/integration tests Thread-Index: Acvt/EMR6SK1DlgdSvmY5/ouDBgLRw== Message-ID: In-Reply-To: <4D91B31D.70102@yp5.be> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.0.101115 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi, Could you try with a regular (persisted) database? For example, using the database URL "jdbc:h2:/temp/test". I guess you will still get the same result, but let's see. If the data is still lost between closing and opening a session, then there must be some code that actively deletes the data. If it works with a persisted database, then the question is: do you start a new process, or use a different class loader for each test? If yes then preserving the data is not possible, except when using a persisted database (or file system). Regards, Thomas On 3/29/11 12:23 PM, "Bruno Dusausoy" wrote: >On 03/29/2011 11:23 AM, Thomas Mueller wrote: >> Hi, >> >> I'm not sure if the in-memory persistence manager is still supported (it >> has been deprecated). What does work is using an in-memory Java database >> such as the H2 database, and use it as the persistence manager and file >> system. To ensure the data is not deleted between two runs (within the >> same process), you could use the database URL "jdbc:h2:memFS:test" - see >> also http://h2database.com/html/advanced.html#file_system >> >> Also, you should disable the Lucene index. You will still need a >> repository.xml file I believe (not sure if this can be avoided). >> >> Regards, >> Thomas >> > >Thanks, Thomas, for your quick answer. >I've put all I could put in H2 (FileSystem, PersistenceManager), but I >get the same result as before : my data are lost between when I close a >session and reopen another one. > >Did I do something wrong with my configuration ? >Here it is : > > > PUBLIC "-//The Apache Software Foundation//DTD Jackrabbit >2.0//EN" > "http://jackrabbit.apache.org/dtd/repository-2.0.dtd"> > > > > > > > > class=3D"org.apache.jackrabbit.core.security.simple.SimpleSecurityManager" > workspaceName=3D"security"> > > class=3D"org.apache.jackrabbit.core.security.simple.SimpleAccessManager"> > > class=3D"org.apache.jackrabbit.core.security.simple.SimpleLoginModule"> > > > > > defaultWorkspace=3D"default"/> > > class=3D"org.apache.jackrabbit.core.fs.db.DbFileSystem"> > > > > class=3D"org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager"= > > > > > > > class=3D"org.apache.jackrabbit.core.fs.db.DbFileSystem"> > > > > class=3D"org.apache.jackrabbit.core.persistence.pool.H2PersistenceManager"= > > > > > > > >Regards. >-- >Pensez environnement : limitez l'impression de ce mail. >Please don't print this e-mail unless you really need to.