[jboss-as7-dev] Configuration conundrum with Express

Scott Stark sstark at redhat.com
Tue Oct 18 18:34:59 EDT 2011


Thanks. I'll check against the attributes I'll need and raise issues to 
address those I find missing.

One issue I see is that we are only looking to System.getProperty(name) 
for the value of an expression in the org.jboss.dmr.ExpressionValue 
class. The expressions I'm typically using need to be queried using 
System.getenv(name). Would it be ok to fallback to a System.getenv(name) 
if there is no System.getProperty(name) value found? This would require 
an update to the dmr project.

On 10/18/11 1:35 PM, Brian Stansberry wrote:
> See example below of reading a resource and then setting an attribute to
> an expression value. This will work properly on master when I'm done today.
>
> Note that not all attributes support expressions (most don't). For those
> that do, the :read-resource-description content for the attribute will
> include:
>
> "expressions-allowed" =>  true
>
> [standalone at localhost:9999 /] cd subsystem=ejb3
> [standalone at localhost:9999 subsystem=ejb3] :read-resource
>
> {
>       "outcome" =>  "success",
>       "result" =>  {
>           "default-mdb-instance-pool" =>  "mdb-strict-max-pool",
>           "default-resource-adapter-name" =>  "hornetq-ra",
>           "default-singleton-access-timeout" =>  5000L,
>           "default-slsb-instance-pool" =>  "slsb-strict-max-pool",
>           "default-stateful-access-timeout" =>  5000,
>           "service" =>  {
>               "timer-service" =>  undefined,
>               "remote" =>  undefined,
>               "async" =>  undefined
>           },
>           "strict-max-bean-instance-pool" =>  {
>               "slsb-strict-max-pool" =>  undefined,
>               "mdb-strict-max-pool" =>  undefined
>           },
>           "thread-pool" =>  {"default" =>  undefined}
>       }
> }
> [standalone at localhost:9999 subsystem=ejb3]
> :write-attribute(name=default-stateful-access-timeout,value=${sfsb.timeout:5000})
> {"outcome" =>  "success"}
> [standalone at localhost:9999 subsystem=ejb3] :read-resource
>
> {
>       "outcome" =>  "success",
>       "result" =>  {
>           "default-mdb-instance-pool" =>  "mdb-strict-max-pool",
>           "default-resource-adapter-name" =>  "hornetq-ra",
>           "default-singleton-access-timeout" =>  5000L,
>           "default-slsb-instance-pool" =>  "slsb-strict-max-pool",
>           "default-stateful-access-timeout" =>  expression
> "${sfsb.timeout:5000}",
>           "service" =>  {
>               "timer-service" =>  undefined,
>               "remote" =>  undefined,
>               "async" =>  undefined
>           },
>           "strict-max-bean-instance-pool" =>  {
>               "slsb-strict-max-pool" =>  undefined,
>               "mdb-strict-max-pool" =>  undefined
>           },
>           "thread-pool" =>  {"default" =>  undefined}
>       }
> }
>
>



More information about the jboss-as7-dev mailing list