File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Clasloaders in jboss

 
Pradeep bhatt
Ranch Hand
Posts: 8927
Firefox Browser Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tom,

What is that you cover in Classloaders and JBoss Appendix?
Thanks
Pradip
 
Tom Marrs
Author
Ranch Hand
Posts: 67
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  •  
    Pradeep bhatt
    Ranch Hand
    Posts: 8927
    Firefox Browser Java Spring
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
    Posts: 67
    • 0
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic