[EMAIL PROTECTED] wrote:
>
> Hi Bojan,
>
> A simpler solution is to fix ReloadInterceptor - and save the current list
> of interceptors before removing the context, then add all per/context
> interceptors after the context is added back ( those having getContext()
> != null ).
OK. I'll look into producing a patch along those lines.
Just to be clear on what you meant here, if there was, for instance this
JDBCRealm local interceptor object, you'd just store its reference
,somewhere else while context is being reloaded and then attach the same
object back as an interceptor after the reload is done.
I was thinking about that but what if that old instance of the
interceptor object relied on something in the old context? That would
screw things up. But if that's not the case (ie. there can't be any
relationship with the context), it should be fine. Still don't know
enough to tell.
My understanding is that ContextXmlReader actually produces 'fresh'
instances every time.
> This would deal with other configuration mechanisms as well -
> ContextXmlReader is not the only way to add contexts, applications
> embeding tomcat may use API calls as well.
>
> Dealing with changes in app.xml is a bit more difficult - and I think the
> right long-term solution is to consolidate all config modules and create a
> smart 'deploy tool' module that can take care of all the issues.
Sounds good.
Bojan