HA_Force

This sample demonstrates eXtremeDB High Availability "kill" feature. The master application creates and populates the database, then enters a loop creating, updating and deleting objects as it waits for connection requests from replicas. Replica applications create duplicates of the master database and synchronize them with the master database. After synchronizing, the replica kills the master and stops.

How to Run

See instructions here on how to build this and other samples on your development platform. Once built, the sample can be run from the \target\bin directory.

In a console window run:

 
    haforce_master
     

Then in a second console window run:

 
    haforce_replica
 

But it is more instructive to run one instance in your development environment debugger, stepping through the code.

Related Topics Link IconRelated Topics