Return-Path: Delivered-To: apmail-directory-users-archive@www.apache.org Received: (qmail 60372 invoked from network); 7 Oct 2007 09:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Oct 2007 09:40:30 -0000 Received: (qmail 5668 invoked by uid 500); 7 Oct 2007 09:40:18 -0000 Delivered-To: apmail-directory-users-archive@directory.apache.org Received: (qmail 5643 invoked by uid 500); 7 Oct 2007 09:40:18 -0000 Mailing-List: contact users-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@directory.apache.org Delivered-To: mailing list users@directory.apache.org Received: (qmail 5632 invoked by uid 99); 7 Oct 2007 09:40:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2007 02:40:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.16.117.98] (HELO srv.erace.pl) (83.16.117.98) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Oct 2007 09:40:20 +0000 Received: by srv.erace.pl (Postfix, from userid 501) id 50047200399; Sun, 7 Oct 2007 11:39:57 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on srv.erace.pl X-Spam-Level: Received: from [192.168.1.103] (monitoring.pl [62.111.183.90]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by srv.erace.pl (Postfix) with ESMTP id ADFF02002D0 for ; Sun, 7 Oct 2007 11:39:54 +0200 (CEST) Subject: Re: [ApacheDS] Running inside JBoss with data storage From: Przemyslaw Rudzki To: users In-Reply-To: References: <1191687334.13742.8.camel@erace> Content-Type: text/plain Date: Sun, 07 Oct 2007 11:39:56 +0200 Message-Id: <1191749996.22705.2.camel@erace> Mime-Version: 1.0 X-Mailer: Evolution 2.12.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.9 Emmanuel, Thx for the suggestion. It does the trick! /p On Sat, 2007-10-06 at 19:15 +0200, Emmanuel Lecharny wrote: > Hi ! > > The data are stored in a place you can change by replacing the > WorkingDirectory when initializing the server. In the following code, > took from the wiki page, you can see that it's set to the content of > "javax.servlet.context.tempdir". It can be whatever you want, you just > have to call the cfg.setWorkingDirectory() method with the place which > fits your need : > > ... > // Determine an appropriate working directory > ServletContext servletContext = evt.getServletContext(); > File workingDir = (File) servletContext > .getAttribute("javax.servlet.context.tempdir"); > > try { > MutableServerStartupConfiguration cfg = new > MutableServerStartupConfiguration(); > cfg.setWorkingDirectory(workingDir); > ... > > > Hope it helps > > > On 10/6/07, Przemyslaw Rudzki wrote: > > Hi all, > > > > I am looking for the way to run ApacheDS in the way as it was described > > in the Advanced User's Guide[1]. I would like to be able to point to the > > place where the partition data are to be stored. > > > > Any hints where I could find some example about this? > > > > Maybe there is a way to store the data in the database that is already > > defined as Datasource inside App Server? > > > > All the best, > > > > /p > > > > [1] > > http://directory.apache.org/apacheds/1.0/embedding-apacheds-as-a-web-application.html > > > > > >