Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-287

Provide an operation to execute domain wide queries on the server side

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Alpha3
    • None
    • Management
    • None

      i.e. retrieve all 'enabled' datasources that use the 'h2' driver:

      ModelNode address = new ModelNode();
      address.add("profile", "*")
             .add("subsystem", "datasources")
             .add("data-source", "*");
      
      ModelNode filter = new ModelNode();
      filter.add("driver-name", "h2")
            .add("enabled", true);
      
      ModelNode op = new ModelNode();
      op.get(OP).set(QUERY);
      op.get(ADDRESS).set(address);
      op.get(WHERE).set(filter);
      

      Another example using the CLI:

      [standalone@localhost:9990 /] /path=*:query(select=[path], where={name="jboss.home.dir"})
      {
          "outcome" => "success",
          "result" => [{
              "address" => [("path" => "jboss.home.dir")],
              "outcome" => "success",
              "result" => {"path" => "/Users/hbraun/dev/prj/wildfly-core/core-build/target/wildfly-core-1.0.0.Alpha14-SNAPSHOT"}
          }]
      }
      

              rhn-support-hbraun Heiko Braun
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: