Hide Forgot
Description of problem: It is not possible to disable a datasource with the following error when application uses resource-ref: /subsystem=datasources/data-source=ExampleDS:disable{allow-resource-service-restart=true} { "outcome" => "failed", "failure-description" => "JBAS014762: Removing services has lead to unsatisfied dependencies: Service jboss.naming.context.java.jboss.datasources.ExampleDS was depended upon by service jboss.naming.context.java.module.helloworld.helloworld.env.jdbc.DefaultDS", "rolled-back" => true } Version-Release number of selected component (if applicable): JBoss EAP 6.4.x How reproducible: Configure a resource-ref to datasouce jndi: <jboss-web> <resource-ref> <res-ref-name>jdbc/DefaultDS</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:jboss/datasources/ExampleDS</jndi-name> </resource-ref> </jboss-web> and execute disable command with allow-resource-service-restart=true: /subsystem=datasources/data-source=ExampleDS:disable{allow-resource-service-restart=true} It is possible to disable the datasouce using the disable command without allow-resource-service-restart=true: /profile=${PROFILE}/subsystem=datasources/data-source=ExampleDS:disable { "outcome" => "success", "response-headers" => { "operation-requires-reload" => true, "process-state" => "reload-required" } } but restart is required. Actual results: it is not possible to disable the datasouce without restart. Expected results: disable the datasouce with CLI ou management console without restart.