TcpEntryPoint tcpEP = new TcpEntryPoint();
tcpEP.setRequestManager(manager);
ReplicationEntryPoint replicationEP = new ReplicationEntryPoint();
replicationEP.setRequestManager(manager);
Container container = new Container();
container.addEntryPoint(agentEP);
container.addEntryPoint(tcpEP);
container.addEntryPoint(replicationEP);
container.setLifeCycleListener(manager);
manager.setContainer(container);
container.deploy();
}
tcpServer.start();
}