Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to configure custom class loader ?

 
tanu dua
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have created my custom class loader for my web application , but I ma not able to understand how to configure that in Tomcat so that when my web application classes are loaded it should be loaded from my custom class loader.

Please help

Thanks
Tanu
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As the name 'custom' suggests, it is pretty much up to you how these things should be done.

Have you read:
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
?

Typically, any code that needs to be run when an application is started is triggered from a context listener.
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic