admin@glassfish.java.net

Re: Item for next Tuedays's iTeam Meeting

From: Byron Nevins <byron.nevins_at_oracle.com>
Date: Thu, 15 Apr 2010 12:51:27 -0700

OK -- I now know exactly what's going on. I figured out what to do to
make it work for instances: absolutely nothing! It already will work
for instances. Nice work, Jerome.
I'm glad I asked/annoyed the email list with the question. I would have
implemented a duplicate solution...

Moral: go ahead and badger the Admin email list with questions, a
little spam is better than lots of unnecessary code!



On 4/15/2010 11:07 AM, Bill Shannon wrote:
> Byron Nevins wrote on 04/15/2010 10:39 AM:
>>
>> On 4/15/2010 9:33 AM, Jerome Dochez wrote:
>>>
>>> there is already that mechanism in place.
>>>
>>> On startup the startup code determines which server and config are
>>> current for this instance and stores those configuration with a
>>> specific registration name in the habitat
>>> (ServerEnvironment.DEFAULT_INSTANCE_NAME).
>> Unless there is some new Java rule -- that is impossible! Any String
>> declared in an interface is automatically final and public. It can
>> not be changed from the default value which is:
>> String DEFAULT_INSTANCE_NAME = "default-instance-name";
>
> You misunderstand.
>
> The constant DEFAULT_INSTANCE_NAME is the *name* of the thing to inject.
> The *value* of the thing that is injected is the instance, which is an
> object of type Server. See the code in EnableCommand that Jerome
> referenced.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>

-- 
Byron Nevins  -  Oracle Corporation
Home: 650-359-1290
Cell: 650-784-4123
Sierra: 209-295-2188