3 Replies Latest reply on Jun 4, 2015 8:07 AM by Sanjeev Gour

    Update deployment scanner with management API

    Sanjeev Gour Novice

      I am trying to do the management api equivalent of the below CLI to read the deployment scanner and ultimately set the auto-deploy-zipped to true. But the read is not working for me in first place.

      CLI works just fine-

      [standalone@localhost:9999 /] /subsystem=deployment-scanner/scanner=default:read-resource


          "outcome" => "success",

          "result" => {

              "auto-deploy-exploded" => false,

              "auto-deploy-xml" => true,

              "auto-deploy-zipped" => false,

              "deployment-timeout" => 600,

              "path" => "deployments",

              "relative-to" => "jboss.server.base.dir",

              "scan-enabled" => true,

              "scan-interval" => expression "${jboss.scan.interval:5000}"




      The code is this-

              ModelNode request = new ModelNode();



              request.get(ClientConstants.OP_ADDR).add("subsystem", "deployment-scanner");

              ModelNode responce = client.execute(request);


      It gives me this-



          "outcome" => "success",

          "result" => {"scanner" => {"default" => undefined}}



      I am not sure what's wrong where.