Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1982

CLI reports incorrect access-type, value-type, restart-required values

    XMLWordPrintable

Details

    Description

      read-resource-description reports attribute values that are different from what is specified in code.
      Below in brackets the expected value

      [standalone@localhost:9999 /] /subsystem=osgi:read-resource-description(recursive=true)
      {
          "outcome" => "success",
          "result" => {
              "description" => "The the OSGi subsystem configuration.",
              "head-comment-allowed" => true,
              "tail-comment-allowed" => true,
              "namespace" => "urn:jboss:domain:osgi:1.0",
              "attributes" => {"activation" => {
                  "description" => "Activation flag for the OSGi subsystem. Possible values: lazy, eager.",
                  "type" => STRING,
                  "default" => "LAZY",
                  "access-type" => "read-write",
      [RESTART_JVM]         "restart-required" => "no-services", 
                  "storage" => "configuration"
              }},
              "children" => {
                  "configuration" => {
                      "description" => "A configuration entry.",
                      "model-description" => {"*" => {
                          "description" => "A configuration entry.",
                          "attributes" => {"entries" => {
                              "description" => "The list of configuration entries.",
                              "required" => true,
                              "type" => LIST,
      [PROPERTY]                        "value-type" => UNDEFINED,
      [read-write]                        "access-type" => "read-only",
                              "restart-required" => "RESTART_ALL_SERVICES",
                              "storage" => "configuration"
                          }}
                      }}
                  },
                  "framework-property" => {
                      "description" => "A framework property.",
                      "model-description" => {"*" => {
                          "description" => "A framework property.",
                          "attributes" => {"value" => {
                              "description" => "The framework property value.",
                              "type" => STRING,
                              "required" => true,
      [read-write]                        "access-type" => "read-only",
                              "restart-required" => "RESTART_ALL_SERVICES",
                              "storage" => "configuration"
                          }}
                      }}
                  },
                  "capability" => {
                      "description" => "A framework capability.",
                      "model-description" => {"*" => {
                          "description" => "A framework capability.",
                          "attributes" => {"startlevel" => {
                              "description" => "The startlevel for the capability.",
                              "type" => INT,
                              "required" => false,
      [read-write]                        "access-type" => "read-only",
                              "restart-required" => "RESTART_ALL_SERVICES",
                              "storage" => "configuration"
                          }}
                      }}
                  }
              }
          }
      }
      

      See the description setup in OSGiSubsystemProviders

      Attachments

        Issue Links

          Activity

            People

              tdiesler@redhat.com Thomas Diesler
              tdiesler@redhat.com Thomas Diesler
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: