One difference between properties and system properties at the command
line level is in the behavior of the set command:
If you have a property, you can do the following:
asadmin set
configs.config.server-config.admin-service.property.adminConsoleContextRoot=/admin
But if you have a system property, you have to be more verbose:
asadmin set
configs.config.default-config.system-property.JMS_PROVIDER_PORT.value=27676
(Note the extra ".value" in the latter).
Also, you can create a new property with the set command:
asadmin set configs.config.server-config.admin-service.property.foo=bar
and you can delete a property with the set command:
asadmin set configs.config.server-config.admin-service.property.foo=
But with a system property, this doesn't work. You have to use the
create-system-properties command in order to create a new system
property and the delete-system-properties command to delete one.
Tom
On 10/27/2010 6:43 PM, Lidia Marchioni wrote:
> Hello all
>
> I have a general question regarding various properties that can be set
> in Glassfish. I'm testing Admin Console and see the following pages
> for properties:
>
> * server
> -> System Properties tab
> * a cluster
> -> Properties tab containing:
> -> System Properties (also called Cluster System Properties) and
> Cluster Properties tabs
> * a clustered instance
> -> Properties tab containing:
> -> Configuration Properties (also named Configuration System
> Properties) and Instance Properties
> * a standalone instance
> -> Properties tab containing:
> -> Configuration Properties (also named Configuration System
> Properties) and Instance Properties
> * a cluster-config
> -> System Properties page (also called Configuration System Properties)
> * other configs as the one above...
>
> The above pages are somewhat confusing in Admin Console (partially due
> to naming, e.g. Configuration System Properties, I'll log an issue for
> that). It is hard to tell if there is any relationship between them,
> just looking at the GUI pages, and what that relationship may be. I
> would like to understand the relationships before logging any
> enhancement requests.
>
> It looks like there are two types of properties: just "regular,
> simple" properties and system properties. Looking at v2 documentation
> (http://docs.sun.com/app/docs/doc/820-4338/abhey?l=en&n=1&a=view) it
> seems that system properties differ from regular properties in that
> they are hierarchical and thus can be overridden further down the
> chain. Is there any other significant difference between the two? Is
> there any other relation between various properties?
>
> Thanks
> Lidia
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>