directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <kayyag...@apache.org>
Subject Re: how to save embedded content
Date Tue, 11 Jan 2011 06:53:20 GMT
hi Peter,

   take a look at the source at
http://svn.apache.org/repos/asf/directory/samples/trunk/embedded-sample
   This example uses version 1.5.7 but should give you an idea

   P.S:- please reply to the mailing list address, more people may
benefit from this conversation and also you might get help
           from other people

2011/1/11 Geiger Péter <mail@geigerpeter.hu>:
> Hi Kiran!
>
> Thx for your answer. Yes, i want to preserve the modifications, but i
> thought, the server can't start when the working directory already
> exists, so I tried to export data at shutdown, and reimport next
> start.
> How can I shutdown the embedded DS without automatically delete the
> workdir, and how can restart it without a "working directory already
> exists" error message? If I don't register the spring context shutdown
> hook, the directory has not deleted, but the DS don't start.
>
>
> Geiger Péter
> -------------------------------------------------------------------------------
> E-mail :  mail@geigerpeter.hu
> Tel. :      +36-20-354-8997
>
>
>
> 2011/1/11 Kiran Ayyagari <kayyagari@apache.org>:
>> hi Peter,
>>
>> 2011/1/11 Geiger Péter <mail@geigerpeter.hu>:
>>> Hello!
>>>
>>> Sorry for my english, I use it very infrequently.
>> np, many of us are not native english speakers
>>> So my problem:
>>>
>>> I'm new with Apache DS and Spring Framework, actually in java/groovy
>>> too, im originally work as PHP developer. But now I use the spring v3.5
>>> with apache ds v 1.5.5 embedded.
>>>
>>> Everithing work fine, the server starts, import the ldif file, the
>>> authentication works,  and I can add etries to the content.
>>> But when I restart my application, my changes are losts, (I registered a
>>> shutdown hook to cleanup the working directory), the server load the
>>> original ldif file again.
>>>
>>>
>>> My question: what the good way to load initial ldif only once, and keep
>>> the changes occurs during the application running, after restarting it?
>>>
>> if I understand your question correctly, you are trying to preserve
>> all the modifications
>> done in your server, then you should not remove the working directory
>>
>> Feel free to ping us on #apache-directory on irc.freenode.net to help
>> understand your problem better.
>>> Thx for your patience and helpful
>>>
>>> Peter Geiger
>>>
>>>
>>
>>
>>
>> --
>> Kiran Ayyagari
>>
>



-- 
Kiran Ayyagari

Mime
View raw message