dev@glassfish.java.net

Re: System.getProperty("product.name") always null?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 02 Oct 2009 10:29:13 -0700

On 10/02/09 10:22, kedar wrote:
>
>
> Jeanfrancois Arcand wrote:
>>
>>
>> kedar wrote:
>>>
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Salut,
>>>
>>> namaste,
>>>
>>>>
>>>> if I run v3 using:
>>>>
>>>> java -jar glassfish.jar,
>>>>
>>>> System.getProperty("product.name") always return null. In that
>>>> scenario, Grizzly automatically fill that value with its own
>>>> current version. But I don't think we want that:
>>>>
>>>>> INTERNAL SERVER ERROR
>>>>> Grizzly/1.9.18c
>>>>
>>>>
>>>> Should the product.name be always set, independently of how v3 gets
>>>> started?
>>>
>>> Sometimes like we have seen in the past, users would want to suppress
>>> the "product.name" to hide the name of the server they are using. What
>>> would happen to it we always had some value for "product.name"?
>>
>> @Kedar
>> Agree this is what we are supposed to do, except right now it is
>> always null unless I pass myself the property.
>>
>> @Jan
>>> Normally, the server info is taken from
>>> com.sun.appserv.server.util.Version#getVersion().
>>> The only motivation for "product.name" was to allow admins to
>>> customize the server
>>> info, or to disable it (by setting it to the empty string).
>>
>> Ok it it seems that value is not taken, at least when java -jar is used.
>
> Jan, but I think this value should be taken only if
> System.getProperty("product.name") returns null, no?

Yes, that's how it is currently implemented.

Jan

>
> -Kedar
>
>
>>
>> A+
>>
>> -- Jeanfrancois
>>
>>
>>>
>>> (Such users set this property to "").
>>>
>>> -Kedar
>>>
>>>>
>>>> A+
>>>>
>>>> -- Jeanfrancois
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>