1 Reply Latest reply on Jul 9, 2008 2:08 PM by Erik Slagter

    Background TCP listener thread

    Erik Slagter Newbie

      I'm using Seam 2.0.1GA and JBoss AS 4.2.2GA.
      I want to start a thread at startup of Jboss. To do this I've created a HttpServlet that starts the thread at init().
      I added the following lines to my web.xml:
      This starts the servlet correctly at startup. The problem is that the thread blocks the rest of the application. The thread is listening for incoming TCP packets on a specified port. (It hangs at mySocket.accept())

      How can I make sure that the rest application keeps running?