File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Clasloaders in jboss Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Clasloaders in jboss" Watch "Clasloaders in jboss" New topic
Author

Clasloaders in jboss

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Tom,

What is that you cover in Classloaders and JBoss Appendix?
Thanks
Pradip


Groovy
Tom Marrs
Author
Ranch Hand

Joined: Sep 20, 2000
Posts: 67
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.

Tom
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

There are useful pages in the JBoss Wiki which cover class loading too. You might like to look at:
  • Classloading overview
  • Class Loading configuration
  • Advanced classloading


  • JavaRanch FAQ HowToAskQuestionsOnJavaRanch
    Pradeep bhatt
    Ranch Hand

    Joined: Feb 27, 2002
    Posts: 8919

    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.
    Tom Marrs
    Author
    Ranch Hand

    Joined: Sep 20, 2000
    Posts: 67
    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.

    Tom
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Clasloaders in jboss