[jboss-jira] [JBoss JIRA] (WFCORE-243) Not started servers need a placeholder resource when added

Alexey Loubyansky (JIRA) issues at jboss.org
Wed Nov 12 03:01:21 EST 2014


Alexey Loubyansky created WFCORE-243:
----------------------------------------

             Summary: Not started servers need a placeholder resource when added
                 Key: WFCORE-243
                 URL: https://issues.jboss.org/browse/WFCORE-243
             Project: WildFly Core
          Issue Type: Bug
          Components: Domain Management
    Affects Versions: 1.0.0.Alpha12
            Reporter: Alexey Loubyansky
            Assignee: Alexey Loubyansky


In ServerAddHandler where the server resource is created, a placeholder should be added. I.e. instead of context.createResource(...) below

        context.addStep(runningServerAdd, new OperationStepHandler() {
            @Override
            public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException {
                context.createResource(PathAddress.EMPTY_ADDRESS);
                context.stepCompleted();
            }
        }, OperationContext.Stage.MODEL, true);

context.addResource(PathAddress.EMPTY_ADDRESS, PlaceholderResource.INSTANCE) should be used instead. Otherwise, servers that are not started at boot will be missing runtime proxies and will be considered as parts of the persistent model.



--
This message was sent by Atlassian JIRA
(v6.3.8#6338)


More information about the jboss-jira mailing list