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

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

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0.Alpha3
    • Component/s: Management
    • Labels:
      None

      Description

      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"}
          }]
      }
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  heiko.braun Heiko Braun
                  Reporter:
                  heiko.braun Heiko Braun
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: