JOnASConfiguration is not modular
This is not modular:
{noformat} // Initialize mandatory services list mandatoryServices = new ArrayList();
// Registry is always mandatory and part of the autodeploy bundles
mandatoryServices.add("registry");
// Security is always mandatory and part of the autodeploy bundles
// See JIRA issues #224 and #280
mandatoryServices.add("security");
// JMX is always mandatory and part of the autodeploy bundles
mandatoryServices.add("jmx");
// The discovery service must be added to mandatory services
if (getDeclaredServices().contains("discovery")) {
mandatoryServices.add("discovery");
}
{noformat}