users@glassfish.java.net

Is it allowed to start a thread from a bootstrap class?

From: <glassfish_at_javadesktop.org>
Date: Mon, 17 Mar 2008 05:10:17 PST

Hi,

I am trying
Sun Java System Application Server 9.1_01 (build b09d-fcs)
When I start the server, I give an option:

    java -javaagent:c:\a\a\limpidlog\build\limpidlog.jar .....

The server started without an error (good).

That program (LimpidLog: http://www.acelet.org) starts a thread to listen a ServerSocket at port 9876. The
port did open, I can tell from debug information. But when Glassfish is ready, the port has been closed. The statement

    serverSocket.accept()
is within a try-catch block. But no Exception thrown, either on STDOUT, nor in server.log.

It seems the thread which started the ServerSocket was killed.

The same program runs well on Jboss, Tomcat and Weblogic 9-10.

Any information would be appreciated. Thanks in advance.
[Message sent by forum member 'weijiang' (weijiang)]

http://forums.java.net/jive/thread.jspa?messageID=264368