You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/11/28 23:34:43 UTC
svn commit: r349535 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java
Author: dims
Date: Mon Nov 28 14:34:39 2005
New Revision: 349535
URL: http://svn.apache.org/viewcvs?rev=349535&view=rev
Log:
Fix for AXIS2-288 - ThreadWorker of Axis2 threadpool should be made a deamon thread
Modified:
webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java
Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java?rev=349535&r1=349534&r2=349535&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java (original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java Mon Nov 28 14:34:39 2005
@@ -29,6 +29,10 @@
private boolean stop;
private ThreadPool pool;
+ public ThreadWorker() {
+ this.setDaemon(true);
+ }
+
public void setPool(ThreadPool pool) {
this.pool = pool;
}
Re: svn commit: r349535 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2005-11-28 at 22:34 +0000, dims@apache.org wrote:
> Author: dims
> Date: Mon Nov 28 14:34:39 2005
> New Revision: 349535
>
> URL: http://svn.apache.org/viewcvs?rev=349535&view=rev
> Log:
> Fix for AXIS2-288 - ThreadWorker of Axis2 threadpool should be made a deamon thread
Chamikara, this will fix the issue you mentioned about the client side
not exiting after everything is done in the async case.
There's a slight requirement here that app must use a non-daemon thread
to wait to prevent the system from exiting but I guess that's ok.
Sanjiva.
Re: svn commit: r349535 -
/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/util/threadpool/ThreadWorker.java
Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
On Mon, 2005-11-28 at 22:34 +0000, dims@apache.org wrote:
> Author: dims
> Date: Mon Nov 28 14:34:39 2005
> New Revision: 349535
>
> URL: http://svn.apache.org/viewcvs?rev=349535&view=rev
> Log:
> Fix for AXIS2-288 - ThreadWorker of Axis2 threadpool should be made a deamon thread
Chamikara, this will fix the issue you mentioned about the client side
not exiting after everything is done in the async case.
There's a slight requirement here that app must use a non-daemon thread
to wait to prevent the system from exiting but I guess that's ok.
Sanjiva.