tnbArgs.transportFactory(new TFramedTransport.Factory());
tnbArgs.protocolFactory(new TBinaryProtocol.Factory());
TServer server = new TNonblockingServer(tnbArgs);
System.out.println("Thrift queue server started on port " + SERVER_PORT);
server.serve();
} catch (Exception e) {
System.err.println("Server start error!!!");
e.printStackTrace();
}
}