dev@glassfish.java.net

Re: Config events convey raw values, not translated

From: kedar <Kedar.Mhaswade_at_Sun.COM>
Date: Thu, 08 Oct 2009 19:38:44 -0700

Lloyd Chambers wrote:
> Is that true?
>
> I thought it picked up values from <system-property> also.

All <system-property> elements are converted into System.setProperty()
in SystemTasks Init service.

Again, I am suggesting that as a work-around. I don't think it makes
sense that runtime has to do this every time it gets a config change
event.

>
> Lloyd
>
> On Oct 8, 2009, at 4:18 PM, Kedar Mhaswade wrote:
>
>> Alternatively, the variable expansion is just doing a replacement from
>> system properties. So in the changed method, if a particular attribute
>> contains {xxx} you could replace it with System.property(xxx). I have
>> tried it and it seems to work.
>
> Lloyd Chambers
> lloyd.chambers_at_sun.com
> GlassFish Team
>
>
>