[jboss-dev-forums] [Design of AOP on JBoss (Aspects/JBoss)] - Re: AOP Testsuite nearly fixed in JBoss-Head

adrian@jboss.org do-not-reply at jboss.com
Thu Jul 19 16:45:46 EDT 2007


The way this works is broken.
It choose the first classloader in a HLR as the classloader for the
ScopedClassLoaderDomain.

But if that classloader is redeployed it still uses the old classloader (or not
since it gced :-)

I've hacked it so there is now a Domain.isValid() which checks to see
whether the classloader is still useable.

This fixes the tests.

But this HACK is also broken. A HLR can have multiple classloaders
and we don't want to throw away a scoped domain just because one of the
classloaders is redeployed.

So the fix only works for the simple usecase where a HLR has one classloader.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065958#4065958

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065958



More information about the jboss-dev-forums mailing list