I am trying to create a sample thrift server using TThreadPoolServer (thrift 0.6)
This is what the code looks like https://gist.github.com/870405

I am running into a very werid issue here.
When I run the application using a main function, everything seems to be working fine and the ThriftServer is coming up. But when I start the ThriftServer in a Servlet which loads at Tomcat Startup (see InitServlet.java in the gist), the control is not being returned and I cannot see any logging or system.out statements after the statement

            server = new TThreadPoolServer(args);


I can telnet into the port at which the thrift service is being started, but the control does not seem to be returning.

It would be great if someone could have a look and point out what is happening , is it an issue or am I doing something wrong. Also are there any links on creating a Thrift Java Server using TTHreadPool Server.

-Abhishek Kona

Reply via email to