On Mon, Oct 12, 2015 at 8:59 PM, V!sh@L Patel <
[email protected]> wrote:

> I have embedded ApacheDS in my java application, and it works fine for me.
> (I followed instructions
> https://cwiki.apache.org/confluence/display/DIRxSRVx11/4.3.+Embedding+ApacheDS+as+a+Web+Application
>  for
> that.)Now, my java application works in cluster environment, having more
> than one middle-tiers (MT) as Master-Slave or multi-master mode. I need
> embedded ApacheDS to work same way, i.e. changes in LDPA entries at one
> MT/ApacheDS, should get reflected/synced at other nodes as well.By using
> configuration at http://joacim.breiler.com/apacheds/ch08s02.html , I can
> configure multiple Stand-alone (none-embedded) ApacheDS setups, which can
> sync with each other. I need to apply similar configuration in embedded
> ApacheDS for my Application.For Stand-alone (none-embedded), configuration
> is applied at OrganizationUnit (ou) – config, but when I add ApacheDS as
> embedded in Java application there is no config ou -
> http://stackoverflow.com/questions/23134802/embedded-apacheds-2-0-doesnt-have-ou-config
>  .Question:How
> can I configure replication programmatically for ApacheDS embedded in Java
> application?Any document/example for that?Thanks in advance.Regards,
> Vishal

please take a look at the ClientServerReplicationIT.java[1] in the
server-integ module
you can follow a similar approach to solve your case

[1]
http://svn.apache.org/repos/asf/directory/apacheds/trunk/server-integ/src/test/java/org/apache/directory/server/replication/ClientServerReplicationIT.java


-- 
Kiran Ayyagari
http://keydap.com

Reply via email to