We are using JBoss 3.2.1

I have a few questions about the class loading architecture.
As I understand it, whenever a class is needed, the UnifiedClassLoader3 tries  
to get it from the ClassLoaderRepository cache. If it does not find it there, 
it tries to see if it can itself load the class. If that does not happen, it 
get a list of all the UCLS that are capable of providing the class based on the 
repository package name to UCL map. All these UCLs are queried for the 
requested class in order. If a UCL is found that can load the class it is 
returned, else a ClassNotFoundException in thrown.

My questions:

1. When are the UCLs added to the ClassLoaderRepository? Suppose I want to 
access a page called MyPage.jsp, then the loader will need to load the 
MyPage_jsp.class, right? So the first time it tries to load it, how does it 
work? It will obviously not find it in the repository cache since, this is the 
first time the page is accessed. Also currently there are no UCLs mapped to 
this in the repository. So how will it load it?

2. Is a class unloaded anytime? I know that a UCL can be unregistered from the 
repository. When does this happen?

Thanks


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

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


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to