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