3,
getDefault());
tcpServer.start();
if (firstTime) {
ReplicationManager manager =
new ReplicationManager(serverIds);
AgentEntryPoint agentEP = new AgentEntryPoint();
agentEP.setRequestManager(manager);
ReplicationEntryPoint replicationEP = new ReplicationEntryPoint();
replicationEP.setRequestManager(manager);
HARequestManager haManager = new HARequestManager();
haManager.setRequestManager(manager);
HAEntryPoint haEP = new HAEntryPoint();
haEP.setHARequestManager(haManager);
Container container = new Container();
container.addEntryPoint(agentEP);
container.addEntryPoint(replicationEP);
container.addEntryPoint(haEP);
container.setLifeCycleListener(haManager);
container.setBagSerializer(haManager);
manager.setContainer(container);
container.deploy();
}
}