Sahoo wrote:
> I don't see any code calling Startup.getLifecycle(). So, can you
> please explain where this is expected to be used? How the code
> deactivates a service that has Lifecycle=STARTUP?
it used to be in appserver startup but it's gone. I think that
considering the limited usage of it, I was planning to remove it all
together but never finished. We can go either way at this point.
> What happens when a startup component having lifecycle=SERVER have a
> reference to a startup service with lifecycle=STARTUP?
it would not matter, the lifecyle is only relevant to the Startup
sequence, if the service is injected somewhere else, it would follow the
instanciation/destruction of that component.
jerome
>
> Thanks,
> Sahoo
>
> Jerome Dochez wrote:
>> that's to define the life-cycle of startup services. By default
>> ,startup services are kept during the entire lifetime of the process
>> but some startup services (say an upgrade facility for instance) need
>> to run once at startup and then does not need to be kept active once
>> the server initialization is finished. You can define the desired
>> life-cycle of your startup using these enum values.
>>
>> jerome
>>
>> On Jul 27, 2008, at 6:32 PM, Sahoo wrote:
>>
>>> Jerome,
>>>
>>> What's the use of Startup.Lifecycle.SERVER?
>>>
>>> Thanks,
>>> Sahoo
>>>
>>> ---------------------------------------------------------------------
>>> 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
>