This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I cover the basics of Java Class Loaders and how they relate to J2EE Class Loaders. Then, I get into some detail about the JBoss Class Loaders.
But the most important thing I cover is how to avoid Class Loader issues in your code, and how to choose the correct Class Loader. The Logging Appendix shows how to use the correct Class Loader to find/load a Properties file that's packaged in your EAR/WAR/JAR deployment.
Thanks Tom and Paul. Is it possible to use custom classloader for a web application ? I dont see how to do this ?The docs havent mentioned anything abt this.
Joined: Sep 20, 2000
Why would you want to use a custom Class Loader? I look a Class Loaders as black magic, and I don't mess with them any more than I need to. I just use the Thread Context Class Loader to load Properties files and other resources from CLASSPATH. Then, I encapsulate the messy code in utility classes.