directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Przemyslaw Rudzki <er...@erace.pl>
Subject Re: [ApacheDS] Running inside JBoss with data storage
Date Sun, 07 Oct 2007 09:39:56 GMT
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 <Przemek.Rudzki@vdel.com> 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
> >
> >
> 
> 


Mime
View raw message