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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...