users@glassfish.java.net

Re: Library refresh rates

From: Sivakumar Thyagarajan <Sivakumar.Thyagarajan_at_Sun.COM>
Date: Mon, 12 Mar 2007 11:04:59 +0530

Sorry, please read all references in the mail below as domain-dir/lib/applibs
instead of domain-dir/lib/.

Thanks
--Siva.

Sivakumar Thyagarajan wrote:
> > changes? If I put them in the domain/domain1/lib dir will this be reload
> > or checked?
> Yes you could use application specific classloading [1] by placing the
> jars in domains/domain1/lib. Even in this case, a modification to the
> contents of domains/domain1/lib would need a redeploy [or
> disable/enable] of the application that wishes to see the new libraries.
>
> So, here is how it would work. Let's say app1 required foo.jar in its
> classpath to start with. Place foo.jar in domains/domain1/lib and deploy
> app1 as
> asadmin deploy --libraries foo.jar app1.ear
>
> Then at a later time copy bar.jar to domains/domain1/lib and for app1 to
> "see" bar.jar,
> asadmin undeploy app1.ear
> asadmin deploy --libraries foo.jar,bar.jar app1.ear
> should help. This way, a server restart is avoided.
>
> Currently, an application restart/redeploy cannot be avoided though.
>
> Thanks
> --Siva.
> [1] https://glassfish.dev.java.net/nonav/javaee5/docs/DG/beade.html#gatej
>
> Kenneth Clark wrote:
>> I was afraid of that. Is there a lib directory that is monitored for
>> changes? If I put them in the domain/domain1/lib dir will this be
>> reload or checked?
>>
>> Thanks
>> Kenneth Clark
>> Developer / Analyst
>>
>> Rabid Dog Laboratories ™
>> Putting the art back into development
>>
>> *tel:* +27 11 475 7409
>> *mobile:* +27 82 500 5090
>> *e-mail:* kenneth_at_rabiddog.co.za
>> *website:* http://www.rabiddog.co.za/
>>
>>
>> Sivakumar Thyagarajan wrote:
>>> Are you referring to ${install_root}/lib? If yes, changes to this
>>> directory are not considered during the lifecycle of the GlassFish
>>> server instance. A server restart is required for new libraries
>>> placed in lib directory to be considered for inclusion into the
>>> system classloader.
>>>
>>> Thanks
>>> --Siva.
>>>
>>> Kenneth Clark wrote:
>>>> Just a quick question.
>>>>
>>>> When deploying new libraries (JAR libraries) what is the period the
>>>> server will wait before implementing those libraries? I am working
>>>> on the impression that the server loads all shared libraries on
>>>> startup. Does it monitor the shared libraries?
>>>>
>>>> Thanks
>>>> --
>>>> Kenneth Clark
>>>> Developer / Analyst
>>>>
>>>> Rabid Dog Laboratories ™
>>>> Putting the art back into development
>>>>
>>>> *tel:* +27 11 475 7409
>>>> *mobile:* +27 82 500 5090
>>>> *e-mail:* kenneth_at_rabiddog.co.za
>>>> *website:* http://www.rabiddog.co.za/
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>>
>>>
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>