dev@glassfish.java.net

Running the glassfish server using a thread, not a process.

From: k0nsuli <k0nsuli_at_konsulaatti.com>
Date: Thu, 23 Nov 2006 01:55:08 +0200

Is it possible to run the GF server using a thread, not a process? I
noticed that with a few changes to the server it could be started in
thread. I tried to run the server in thread and I managed to do it once,
but after the shutdown it didn't work anymore (AFAIK the problem is in
the PEMain and the SystemOutandErrHandler implementation). What about
the rest of the server implementation? The reason why I am asking is if
you want to integrate the server to your own project, a thread could be
a really good choice, because it will not leave the server running even
if your program crashes.

** k0nsuli