On Fri, Jan 15, 2010 at 11:34 AM, Simon Laws <[email protected]> wrote: > Firstly, it does seem a little odd that it has to cache it. There is > extra effort in doing it so it would be interesting to know why. > > This is probably a stupid question but in the new world of the > NodeFactory I thought we only loaded the extensions once. Presumably > using the classloader that loads the factory. What's the effect you > see in your scenario when you have multiple nodes on different > classloaders? > > Simon >
The scenario is in Tomcat where the Tuscany jars are shared and each webapp starts a Node. So the extensions are only started once and the first time ContextClassLoaderServiceDiscoverer gets used it caches the current value for the TCCL which as its cached is also used for every other Node in all the other webapps. So then things like the ModelResolvers try find things using an incorrect classloader. ...ant
