wildfly/wildfly-core — pull request #56 by soul2zimate (2014-07-24 10:42:41+00:00)
Title: [WFLY-3566], don't remove jmx resource in config if proper header is unset

https://issues.jboss.org/browse/WFLY-3566
only perform context.removeResource() if allow-resource-service-restart header is set, otherwise, it will remove jmx subsystem from configuration file in previous fix, services are missed after a reload operation.

And missingServices is empty since it does not add previousMissing dependencies at the second remove action, this causes the situation mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1087711 comment 1.