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

Inconsistent expression support

XMLWordPrintable

      Although some subsystem declare support for expression on certain attributes, they actually don't support it.

      As en example see datasources > pool > max-pool-size.

      The DMR description says it supports expressions on this attribute:

       "max-pool-size" => {
                      "type" => INT,
                      "description" => "The max-pool-size element specifies the maximum number of connections for a pool. No more connections will be created in each sub-pool",
                      "expressions-allowed" => true,
                      "nillable" => true,
                      "default" => 20,
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  },
      
      

      But then writing an expression value yields an exception

      Request
      [ERROR] {
      [ERROR]     "operation" => "composite",
      [ERROR]     "address" => [],
      [ERROR]     "steps" => [{
      [ERROR]         "address" => [
      [ERROR]             ("profile" => "full"),
      [ERROR]             ("subsystem" => "datasources"),
      [ERROR]             ("data-source" => "ExampleDS")
      [ERROR]         ],
      [ERROR]         "operation" => "write-attribute",
      [ERROR]         "name" => "max-pool-size",
      [ERROR]         "value" => expression "${pool:15}"
      [ERROR]     }]
      [ERROR] }
      
      
      08:48:23,965 DEBUG [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 5) JBAS014616: Operation ("write-attribute") failed - address: ([
          ("subsystem" => "datasources"),
          ("data-source" => "ExampleDS")
      ]) - failure description: "JBAS014688: Wrong type for value. Expected [INT] but was EXPRESSION"
      

              bstansbe@redhat.com Brian Stansberry
              rhn-support-hbraun Heiko Braun
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: