"remoteAddress", new InetSocketAddress("localhost", 8080));
bootstrap.setOption("reuseAddress", true);
final HessianProxyFactory factory = new HessianProxyFactory(executor, "localhost:8080");
bootstrap.setPipelineFactory(
new RPCClientSessionPipelineFactory(new RPCClientMixinPipelineFactory(executor, factory), bootstrap));
factory.setDisconnectedListener(new Runnable()
{
public void run()
{
//stop = true;
}
});
factory.setNewSessionListener(new Runnable()
{
public void run()
{
stop = false;
executor.execute(new Runnable()
{
public void run()
{
System.out.println("started work thread");
Map options = new HashMap();
options.put("sync", true);
options.put("timeout", (long)10000);
AsyncMBeanServerConnection service = (AsyncMBeanServerConnection) factory.create(AsyncMBeanServerConnection.class, Client.class.getClassLoader(), options);
server = new MBeanServerConnectionAsyncAdapter(service);
while (!stop)
{
try