In a discussions about this, we were looking at what Commons Digester does: http://commons.apache.org/digester/commons-digester-1.8/docs/api/org/apache/commons/digester/Digester.html#getUseContextClassLoader()
It appears you can direct Digester to what ClassLoader should be used. We just have to figure out how to do that in Struts. What would it mean to configure Struts in an OSGi container? It's typically configured in web.xml -- does that have any bearing? Spring Framework supplies a bunch of OSGified JEE libraries. So I hope to learn from them some tips. If anyone else has an idea, I'd like to hear. Paul On Fri, Jun 13, 2008 at 12:01 PM, Saminda Abeyruwan <[EMAIL PROTECTED]> wrote: > Hi All, > > Thank you for your help to clarify the TCCL issue. I really appreciate > this. > > Would Felix provide an extension point to set the TCCL we wanted to use. > (ex: instance of ContextFinder). Since the classloader delegation is > handle > within the framework, I am wondering is it possible to change the default > behaviour as wanted. > > Thank you! > > Saminda > > > > > > > there's also the "ContextFinder" classloader implementation from the > > Equinox project, which you can set as your TCCL and it will try to find > > the right classloader based on the current call stack - although like the > > bytecode weaving solution, it's not 100% foolproof... > > > > note the OSGi specification does not mandate a specific TCCL setting > > > > > > > > > -- > Saminda Abeyruwan > > Senior Software Engineer > WSO2 Inc. - www.wso2.org >
