I don't think that this is correct. If the only thread is the listener then the server should stay listening and not exit. With the thread set to daemon, if the only remaining thread in the application is the server, the application will exit.
If you run the "main" in that class does it exit or continue? If it continues, what thread is keeping the application alive? Or did I miss something important? Jim On 2002.08.12 20:02 [EMAIL PROTECTED] wrote: > dlr 2002/08/12 19:02:28 > > Modified: src/java/org/apache/xmlrpc WebServer.java > Log: > start(): Marked the "XML-RPC Weblistener" thread as a daemon thread > to > assure the JVM will be able to shutdown if this thread is still > running when System.exit() is called or an appropriate signal is > sent. > > > http://java.sun.com/j2se/1.3/docs/api/java/lang/Thread.html#setDaemon(boolean) > > Revision Changes Path > 1.12 +2 -1 > xml-rpc/src/java/org/apache/xmlrpc/WebServer.java > > Index: WebServer.java > =================================================================== > RCS file: > /home/cvs/xml-rpc/src/java/org/apache/xmlrpc/WebServer.java,v > retrieving revision 1.11 > retrieving revision 1.12 > diff -u -u -r1.11 -r1.12 > --- WebServer.java 20 Mar 2002 15:11:03 -0000 1.11 > +++ WebServer.java 13 Aug 2002 02:02:28 -0000 1.12 > @@ -213,6 +213,7 @@ > public void start() > { > listener = new Thread(this, "XML-RPC Weblistener"); > + listener.setDaemon(true); > listener.start(); > } > > > > > -- Jim Redman (505) 662 5156 http://www.ergotech.com