You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Gurkan Erdogdu <gu...@yahoo.com> on 2010/08/18 09:27:22 UTC
[Question] About Pool # Executor Threads
Hello;
Currently org.apache.openejb.util.Pool uses executor. For example,
StatelessInstanceManager provides it via
executor = new ThreadPoolExecutor(callbackThreads, callbackThreads*2,
0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<Runnable>());
ThreadPoolExecutor provides threads using Executors.defaultThreadFactory() that
creates non-daemon threads.
When deploy OpenEJB into Tomcat, after stopping the tomcat instance, it has not
been stopped, because of those non-daemon threads. Is it possible to "shutDown"
executor on the pool after undeployment of ejbs?
Thanks;
--Gurkan
Re: [Question] About Pool # Executor Threads
Posted by David Blevins <da...@visi.com>.
On Aug 19, 2010, at 12:28 AM, Jean-Louis MONTEIRO wrote:
> Thanks for pointing that.
> David did some changes yesterday. May be it's related with that post.
Yep. Checked in a change about an hour ago that switches the threads to daemons.
Thanks, Gurkan!
-David
Re: [Question] About Pool # Executor Threads
Posted by Jean-Louis MONTEIRO <je...@atosorigin.com>.
Hi Gurkan,
Thanks for pointing that.
David did some changes yesterday. May be it's related with that post.
Anyway, thanks.
JLouis
--
View this message in context: http://openejb.979440.n4.nabble.com/Question-About-Pool-Executor-Threads-tp2329443p2330759.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.