[jboss-as7-dev] Reading attribute with CLI fails
Heiko Braun
hbraun at redhat.com
Fri Jul 22 08:03:36 EDT 2011
I was complaining about tis a while ago as well.
With the current model structure you cannot easily read any single attribute
of the jsp-configuration.
Brian, Remy: any ideas how this could be improved?
Some thoughts about a generic config container have been on the table before.
Similar to system and other properties (See my other email about key/value pairs)
/subsystem=web/config=development:read-resource()
Alternatively it could become a specific sub resource,
so that read/write attribute operations might apply:
/subsystem=web/config=jsp:read-attribute(name=development)
If you ask me, i'd prefer the later.
Ike
On Jul 22, 2011, at 1:44 PM, ChrisRamsdale wrote:
> Hi everyone,
> I'm trying to read the "development" attribute of the web subsystem
> using the command line interface.
> Since the attribute is part of a group (jsp-configuration), I cannot
> read it using the standard syntax.
>
> "jsp-configuration" => {
> "development" => false,
> . . . .. . .
> }
>
> [standalone at localhost:9999 subsystem=web]
> :read-attribute(name="development")
> {
> "outcome" => "failed",
> "failure-description" => "No known attribute development",
> "rolled-back" => true
> }
>
> or
>
> [standalone at localhost:9999 subsystem=web]
> :read-attribute(name="jsp-configuration/development")
> {
> "outcome" => "failed",
> "failure-description" => "No known attribute development",
> "rolled-back" => true
> }
>
> Anyone can enlight me how to read this attribute successfully ?
> Thank you very much!
> Chris
>
> --
> http://www.fastmail.fm - Send your email first class
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110722/d206f2b0/attachment.html
More information about the jboss-as7-dev
mailing list