dev@glassfish.java.net

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

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 01 Oct 2009 22:26:00 -0400

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.

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
>