This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Servlet ClassLoader Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

Servlet ClassLoader

Abhishek khare

Joined: Aug 08, 2007
Posts: 25

I am currently working on a system that has Servlet as a Front Controller(WEB-INF/Classes), and the business logic classes are placed in the DB.

The product provides a mechanism of External Class loader that adds the DB classes to the current context. What I am not able to understand, how I can add this class loader to my Servlet, so the servlet has access to the DB classes.

note: I am using Tomcat.


"Things come to those who wait, but only the things left by those who hustle."
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63350

Please do not post the same question more than once.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Servlet ClassLoader
It's not a secret anymore!