TProtocolFactory protocolFactory = new TBinaryProtocol.Factory();
TTransportFactory transportFactory = new TFramedTransport.Factory();
TNonblockingServerTransport serverTransport;
ClientHandler.Processor<ClientHandler.Iface> processor =
new ClientHandler.Processor<ClientHandler.Iface>(handler);
serverTransport = new TNonblockingServerSocket(listeningPort);
TNonblockingServer.Args serverArgs =
new TNonblockingServer.Args(serverTransport);
serverArgs.processor(processor).transportFactory(transportFactory)
.protocolFactory(protocolFactory);