[jboss-jira] [JBoss JIRA] (WFCORE-528) ServerService and ServerShutdownHandler are not embedded-friendly

Brian Stansberry (JIRA) issues at jboss.org
Sun Feb 1 18:51:49 EST 2015


Brian Stansberry created WFCORE-528:
---------------------------------------

             Summary: ServerService and ServerShutdownHandler are not embedded-friendly
                 Key: WFCORE-528
                 URL: https://issues.jboss.org/browse/WFCORE-528
             Project: WildFly Core
          Issue Type: Enhancement
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry


ServerService and ServerShutdownHandler are both unfriendly to embedding as they call System.exit (in the case of ServerService only in the case of critical boot failures.)

Simplest fix is to use SystemExiter and have the embedded server code swap in an approproite Exiter. Only thing I don't like about that is SystemExiter is base on static fields and seems to have been written for testing.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list