Thx for info :-D. Rgds,
/p On Sun, 2007-10-07 at 19:06 +0200, Emmanuel Lecharny wrote: > Hi, > > a LDIF is loaded only once, as we store into the DIT the date it has > been loaded. Remember that data are remanent in the database. > > Regarding the version: number, this is a mandatory - even if not used > - part of a ldif file, accordingly to the LDIF specification > (http://www.rfc-editor.org/rfc/rfc2849.txt). It should contain the > LDIF format version : > > ldif-file = ldif-content / ldif-changes > ldif-content = version-spec 1*(1*SEP ldif-attrval-record) > ldif-changes = version-spec 1*(1*SEP ldif-change-record) > version-spec = "version:" FILL version-number > version-number = 1*DIGIT > ; version-number MUST be "1" for the > ; LDIF format described in this document. > > > Emmanuel > > On 10/7/07, Przemyslaw Rudzki <[EMAIL PROTECTED]> wrote: > > Hi Again :-D, > > > > Now I have another problem. Is there any way to ensure that the contents > > of the ldif file that is loaded via cfg.setLdifDirectory(new File(".")); > > (that is home dir) is loaded every time the web app/sar starts? > > > > BTW. what is the role of version: field. I have tried to put different > > version numbers hoping that it will change/update entries. Is it the > > purpose if this attr? > > > > Is there any place where I could see the results if the import? Maybe > > some external log? > > > > /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 <[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 > > > > > > > > > > > > > > > > > > > >
