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 <[EMAIL PROTECTED]> 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
>
>


-- 
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

Reply via email to