Sounds like a bug to me. Can you put it in Jira?
Thanks,
Jan

On Fri, 2009-09-18 at 14:03 +0200, Erik Alphenaar wrote:
> Good day all,
> 
> In magnolia, users can use their own servlets by wrapping the
> ServletDispatchingFilter around the servlet class in the configuration.
> This dispatcher news the servlet class and eventually calls the init
> method after setting properties etc. .
> 
> When the contents of the servlets tree in /server/filters/servlets are
> changed in the magnolia admincentral, magnolia reloads the filterchain
> to enable the changes to be processed, and thus creates a new instance,
> and calls the init method. The destroy method does not seem to be
> dispatched. 
> 
> In my opinion it would be nice to also dispatch the destroy method to
> the wrapped servlet. At the moment the destroy() is completely ignored
> by the ServletDispatchingFilter. This might lead to unexpected behaviour
> in some scenarios.
> 
> Does anyone have an opinion on this?
> 
> Thanks in advance, 
> 
> Regards,
> 
> Erik Alphenaar
> Net Effect Holding B.V.
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------


----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to