THRIFT-960 switch back to TThreadPoolServer with AbstractServerArgs
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@1026714 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/lib/java/test/org/apache/thrift/test/TestServer.java b/lib/java/test/org/apache/thrift/test/TestServer.java
index e4c4f6f..e65756d 100644
--- a/lib/java/test/org/apache/thrift/test/TestServer.java
+++ b/lib/java/test/org/apache/thrift/test/TestServer.java
@@ -69,10 +69,10 @@
TServer serverEngine;
// Simple Server
- serverEngine = new TSimpleServer(new Args(tServerSocket).processor(testProcessor));
+ //serverEngine = new TSimpleServer(new Args(tServerSocket).processor(testProcessor));
// ThreadPool Server
- //serverEngine = new TThreadPoolServer(testProcessor, tServerSocket, tProtocolFactory);
+ serverEngine = new TThreadPoolServer(new TThreadPoolServer.Args(tServerSocket).processor(testProcessor).protocolFactory(tProtocolFactory));
// Run it
System.out.println("Starting the server on port " + port + "...");