Re: Running Thrift Server inside Tomcat.

2013-05-17 Thread Denuwanthi Hasanthika
Hi, Thanks. It worked when followed those steps. -Denuwanthi On Fri, May 17, 2013 at 9:17 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Isuru, > > On 5/16/13 10:36 AM, Isuru Ranawaka wrote: > > hi, Did you try to start th

Re: Running Thrift Server inside Tomcat.

2013-05-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Isuru, On 5/16/13 10:36 AM, Isuru Ranawaka wrote: > hi, Did you try to start thriftserver in a separate thread rather > than start it directly in the init method. because i think > execution on current thread is blocked due to start listening on > p

Re: Running Thrift Server inside Tomcat.

2013-05-16 Thread Isuru Ranawaka
hi, Did you try to start thriftserver in a separate thread rather than start it directly in the init method. because i think execution on current thread is blocked due to start listening on perticular port .try it by creating a Runnable class and start Serversocket in run method and start thread b

Running Thrift Server inside Tomcat.

2013-05-16 Thread Denuwanthi Hasanthika
Hi, I am using tomcat 6.0.29. I want to run a Thrift Server ,when Tomcat start up. So, I created a Thrift Server and called it inside a HttpServlets init(ServletConfig) method of a servlet deployed in tomcat server. *Server Tomcat v6.0 Server at localhost was unable to start within 45 seconds. I