Thanks for that information about the jmx-console...I'm playing around with it 
right now and it seems very useful!

A few questions about these classloading issues that have come up by me reading 
the JBoss ClassLoading wikis:

1) What is the relationship between UnifiedClassLoaders and EARs, WARs, 
EJB-JARs, and regular JARs deployed in the application server? The following 
link doesn't explicitly say whether every archive has one and only one UCL: 
http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossClassLoadingUseCases. 

What about an archive with sub-archives (e.g. an EAR containing WARs, JARs, and 
EJB-JARs)? Do they ALL share the same UCL? (My question asks more about this 
one...)

2) From http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration :
"There are two levels of scoping, isolation from other deployments, and 
isolation that overrides the loading of JBoss server classes. With nested 
modules, only the top level file may specify class loader scoping. If you have 
a .ear file containing other modules, only scoping specified in the .ear's 
META-INF/jboss-app.xml is used. This also applies for any other deployment 
which contains sub-deployments. For example, if a .sar contains a .war 
deployment, only the .sar META-INF/jboss-service.xml scoping has effect."

Does this mean that every class in a given top-level archive (or sub-archive of 
it) has been loaded by the same classloader, and therefore absolutely any class 
can see any other class within the top-level archive (or sub-archive)? 

3) How does the exception with classes in the WAR file occur (where things in 
the WAR file can't be seen elsewhere in the archive by default)? Is the WAR's 
jboss-***.xml file ignored? (i.e. The equivalent of it always turning ON scoped 
classloading for that WAR?) Why is it treated different from other archive 
types?

4) Is saying that an archive has scoped classloading the exact same as saying 
that the archive has its own UCL?

Thanks a lot for your help.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991844
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to