geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Jencks <david_jen...@yahoo.com>
Subject Re: Semantics of application restart
Date Thu, 15 Jan 2009 18:30:49 GMT

On Jan 15, 2009, at 4:39 AM, Juergen Weber wrote:

>
> Hi, what happens if you restart an application from the console?
>
> I tried to cache properties loaded from an LDAP server in a pojo  
> singleton.
> I expected that if you restart an application, the classloader of the
> application is thrown away and all classes re-instantiated.
> But, looks like this is not the case, the singleton is still there  
> after
> restart.

I'm quite surprised at this, I also expected the classloader would be  
re-created.  Are you certain the pojo is actually being loaded in the  
application's classloader?

thanks
david jencks

>
>
> I changed my code to empty the cache from the @PostConstruct method,  
> this
> works.
>
> Thanks,
> Juergen
>
> -- 
> View this message in context: http://www.nabble.com/Semantics-of-application-restart-tp21476759s134p21476759.html
> Sent from the Apache Geronimo - Users mailing list archive at  
> Nabble.com.
>


Mime
View raw message