-----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 > perticular port .try it by creating a Runnable class and start > Serversocket in run method and start thread by giving that runnable > class as target in the init method. ... and then move everything into a ServletContextListener where it belongs. Don't forget to shut-down the TServetSocket and the associated thread in the destroy() method, too, or you will have a pretty serious resource leak. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRlahpAAoJEBzwKT+lPKRYbaIP/3prOBuf7tERGzSMVth38Cyl Y0Z8cs1xCTVcOVxNJsEDIQN1imv3fy2S4nOZmRC5hKfqh3rr/vYlL60e9TKktPnL QfYJS2wAGgUN++Y1yAZ6fvo/LQ12x0TRDbf4EuwBJ5NyAUFy9pP1La3MpmiWMcvP LTgRA4VEaW6b3GugqlgiqIFPF6yV5JfzO28cQmAbHY2DVFHQ2toT7BjAI5hCfAY6 tqdEO1xNbJud8jGYTy2NHEs5Jgu/z1gRmNna7RZ4loFe0tj/inNhqOWWerlOWCp4 XkHyGcfqnb3Wn/+Oq+IiLR1lCPImwVOHX5kJrHwEdIP4IhnoDNdXQihfNt5vg1Qv EDd0ax6PGisJ7a5bK7YVAnpM0/CJ9hQ61/tu72nKEoF+oGHuZfdFdvmFWgEnKaqC xqT89dWfsY7Gw4tK1pBhI74wl+Ci9iWw8LlbqWtvYhqAihOv7okYmBvH5LjFfvaZ dRRHAq7aTHnPa+GvqxSja/B37O42pfqdYPROT8YqQ1nYw21IJ+iNoECuTwS/Czdo WNZtFB/qUhrCNa7nmqClqLOpRAnerP9i+Xe7vrCNcCN6jj3Q/BL2lTLLPdUUwccH QakmVk1NwLPfqe+SE98Za2DowM3dwIP8fKT+ZxPQUUU0fuPBP0MXnlrAjxYRdv90 a4qcsLybuN8DgtQrrJwA =7NEA -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org