[jboss-jira] [JBoss JIRA] Resolved: (JBAS-6929) Make HDScanner a Daemon Thread

Scott M Stark (JIRA) jira-events at lists.jboss.org
Fri May 15 19:11:46 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott M Stark resolved JBAS-6929.
---------------------------------

    Fix Version/s: JBossAS-5.1.0.GA
       Resolution: Done


There is not an option to create a daemon thread in the java.util.concurrent.ScheduledThreadPoolExecutor api, so I added a destroy method that shuts down the executor if the scanner bean created. If it was injected, the injected bean would be responsible for its shutdown.


> Make HDScanner a Daemon Thread
> ------------------------------
>
>                 Key: JBAS-6929
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6929
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: System service
>            Reporter: Andrew Lee Rubinger
>            Assignee: Scott M Stark
>             Fix For: JBossAS-5.1.0.GA
>
>
> Marking the daemon flag to true will allow the VM to exit upon server shutdown.  Alternatively, kill the scanner upon undeploy.
> "HDScanner" prio=1 tid=0x00007f722c171100 nid=0x356 waiting on condition [0x00007f723c560000..0x00007f723c560d70]
> 	at sun.misc.Unsafe.park(Native Method)
> 	at java.util.concurrent.locks.LockSupport.park(LockSupport.java:118)
> 	at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1841)
> 	at java.util.concurrent.DelayQueue.take(DelayQueue.java:131)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:533)
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:526)
> 	at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:470)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:674)
> 	at java.lang.Thread.run(Thread.java:595)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list