Haven't used the Scheduler but looking at the code quickly it seems the execution 
thread is that of the jmx Timer, and it's not very obvious if it does a clean shutdown 
(it creates daemon thread by default, though).

So, do you get a clean shutdown?

If not, you can try to synchronize your serviceStop() with e.g. a Boolean shutdown 
flag inside your MBean. You doSomething() will also synchronise on that and make sure 
also it is not set (in case a call comes after serviceStop() has been called).

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3853839#3853839

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3853839


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to