• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Clasloaders in jboss

 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tom,

What is that you cover in Classloaders and JBoss Appendix?
Thanks
Pradip
 
Author
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 8945
    Firefox Browser Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
    Posts: 67
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • 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
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    reply
      Bookmark Topic Watch Topic
    • New Topic