[jboss-jira] [JBoss JIRA] Commented: (JBAS-6916) Remove hardcoded call to Runtime.exit in JMXKernel

Dimitris Andreadis (JIRA) jira-events at lists.jboss.org
Thu May 14 05:29:47 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBAS-6916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12467480#action_12467480 ] 

Dimitris Andreadis commented on JBAS-6916:
------------------------------------------

Just be careful with that in the AS context. At some point I was looking at why a JVM halt was necessary at shutdown time. In the AS environment some non-daemon threads might not allow the server to stop.

> Remove hardcoded call to Runtime.exit in JMXKernel
> --------------------------------------------------
>
>                 Key: JBAS-6916
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6916
>             Project: JBoss Application Server
>          Issue Type: Task
>      Security Level: Public(Everyone can see) 
>          Components: JMX
>            Reporter: Andrew Lee Rubinger
>            Assignee: Andrew Lee Rubinger
>
> Legacy implementation of bootstrap would manually exit the VM upon server shutdown as a default.  With the new bootstrap implmentation, VM-specific stuff is left out of scope.
> Because non-daemon Threads are left running in the VM after server shutdown, the VM does not cleanly exit without some help.  Therefore JMXKernel.shutdown has a Runtime.exit() directly in it.
> This block in the JMXKernel must be removed after server shutdown leaves no non-daemon Threads running.

-- 
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