users@glassfish.java.net

Re: RE: Need help with asadmin command to set a property

From: <glassfish_at_javadesktop.org>
Date: Thu, 02 Oct 2008 22:05:59 PDT

Hi Brett,

Like Alex said, if you want to add additional property, you need to use the dotted-name command set:

try:
./asadmin set server.applications.lifecycle-module.FileHandlerConfigurator.property.com\\.canoga\\.nms\\.pcs\\.slm\\.pattern="slm-%g.log"

You want to use the escape character in the property name to distinguish that it's not part of the dotted-name.

As for the get command, you may have discovered a bug. If there is "." in the property name, get "*" will not display it. But if you specify the exact dotted-name with the escape character, get command will display the property name and value:
asadmin get "server.applications.lifecycle-module.FileHandlerConfigurator.property.com\\.canoga\\.nms\\.pcs\\.slm\\.pattern"
I can reproduce this on my system.

Can you open a bug on this?

Thanks!
Jane
[Message sent by forum member 'janey' (janey)]

http://forums.java.net/jive/thread.jspa?messageID=303082