[Design of JBoss ESB] - Re: Scoped deployments in AS 5.x
by Kevin.Conner@jboss.com
My preference would be to stick with the AS mechanism rather than to continue the deployment specific configuration, at least until we have a good reason why we need to intervene. This was a necessary evil within AS 4 but should no longer be required using microcontainer. Moving from AS 4 to AS 5 will be a big enough change in any case, differences will arise.
We do have plenty of time to revisit this should it become necessary but the main advantage to us of not supporting it would be consistency with other deployments within the microcontainer (configuration and behaviour), and of course it would be someone else's code :)
Use the AS mechanisms as much as possible for now and we will see where we end up. If we do need to introduce ESB specific mechanisms then we can look into it at a later stage.
Kev
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228601#4228601
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228601
15 years, 8 months
[Design of POJO Server] - Re: Caching of classes in BaseClassLoaderDomain
by adrian@jboss.org
Well, turning the blacklist off altogether is one way to fix it. :-)
But it is inconsistent. If you had three levels of hierarchical domain it still
wouldn't work because loadClass(...) still checks the blacklist.
The issue is that the blacklist is being checked before the parent (cache) is asked
wether it knows the class.
The order should be more like:
1) Check the current domain to see if cached == false
2) Check the parent domain to see if cached == true
3) Check the current domain to see if blacklisted == true
Currently (2) and (3) are the wrong way around. Your fix just removes (3)
In fact, the real issue is that (2) is not happening at all except inside the classloader
lock which is not very efficient.
I'll fix it properly, but it is slightly complicated in that step (2) isn't the
correct thing to do if the class doesn't match the parent filter.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4228564#4228564
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4228564
15 years, 8 months