You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2002/04/26 23:40:52 UTC
cvs commit: jakarta-jetspeed/src/java/org/apache/jetspeed/daemon DaemonThread.java
taylor 02/04/26 14:40:52
Modified: src/java/org/apache/jetspeed/daemon DaemonThread.java
Log:
Tagged all Jetspeed threads as daemons (this.setDaemon(true))
This will allow for Jetspeed to properly shutdown with Tomcat 4.0.2 and greater.
As of version 4.0.2, Tomcat no longer calls System.exit(0) when shutdown, so user threads are not stopped.
Revision Changes Path
1.16 +9 -3 jakarta-jetspeed/src/java/org/apache/jetspeed/daemon/DaemonThread.java
Index: DaemonThread.java
===================================================================
RCS file: /home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/daemon/DaemonThread.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- DaemonThread.java 17 Dec 2001 15:32:24 -0000 1.15
+++ DaemonThread.java 26 Apr 2002 21:40:52 -0000 1.16
@@ -63,20 +63,20 @@
/**
@author <a href="mailto:burton@apache.org">Kevin A. Burton</a>
-@version $Id: DaemonThread.java,v 1.15 2001/12/17 15:32:24 sgala Exp $
+@version $Id: DaemonThread.java,v 1.16 2002/04/26 21:40:52 taylor Exp $
*/
public class DaemonThread extends Thread {
private Daemon daemon = null;
/**
- */
+ */
public DaemonThread( DaemonEntry entry ) {
super( "DaemonThread:" + entry.getName() );
try {
+ this.setDaemon(true);
this.daemon = DaemonFactory.getDaemon( entry );
-
this.setPriority( Thread.MIN_PRIORITY );
} catch (DaemonException e) {
//really screwed here.
@@ -84,6 +84,12 @@
}
}
+
+ public DaemonThread()
+ {
+ super();
+ this.setDaemon(true);
+ }
/**
*/
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>