I've now had a look at the new aop classloading tests, and see the problem you have
been describing.
So, the problem we have with the failing test is that it is trying to create the
interceptor twice. This is what we solved before with the
ScopedJBossClassPool/ScopedClassLoaderDomain. To summarize what you have probably said
already with my own words, with the new classloaders, we don't really have scoped
classloaders in this case. So the check to see if the classloader is scoped to create a
new domain does not really work here... I see what you have done, which is basically to
make sure that the correct classloader is used, however we are not really limiting what is
available.
What is needed is maybe ***something along the lines of*** setting the classloader on the
advicebindings (and other things) + a AdviceBinding.isVisble(ClassLoader) type method or
something like that. I'll look more into this in the morning and hopefully come up
with some better ideas :-)
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080639#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...