Skip to content

Instantly share code, notes, and snippets.

@maeste
Created February 14, 2014 10:14
Show Gist options
  • Save maeste/8998756 to your computer and use it in GitHub Desktop.
Save maeste/8998756 to your computer and use it in GitHub Desktop.
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:disable{allow-resource-service-restart=true}
{"outcome" => "success"}
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:enable{allow-resource-service-restart=true}
{"outcome" => "success"}
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:disable{allow-resource-service-restart=true}
{"outcome" => "success"}
[standalone@localhost:9990 /] /subsystem=datasources/data-source=ExampleDS:enable{allow-resource-service-restart=true}
{"outcome" => "success"}
[standalone@localhost:9990 /]
@hpehl
Copy link

hpehl commented Feb 14, 2014

When I try to re-enable the disabled DS I get

[domain@localhost:9990 /] /profile=full/subsystem=datasources/data-source=ExampleDS:enable
{
    "outcome" => "failed",
    "result" => undefined,
    "failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",
    "rolled-back" => true,
    "server-groups" => {"main-server-group" => {"host" => {"master" => {
        "server-one" => {"response" => {
            "outcome" => "failed",
            "failure-description" => "JBAS014749: Operation handler failed: Service jboss.data-source-config.ExampleDS is already registered",
            "rolled-back" => true
        }},
        "server-two" => {"response" => {
            "outcome" => "failed",
            "failure-description" => "JBAS014749: Operation handler failed: Service jboss.data-source-config.ExampleDS is already registered",
            "rolled-back" => true
        }}
    }}}}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment