Use Thread.currentThread().getContextClassLoader()

-----Original Message-----
From: Rudolf Visagie [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 26, 2004 2:42 PM
To: [EMAIL PROTECTED]
Subject: WepappClassLoader reference


I was wondering if it is at all possible to get hold of the
WebappClassLoader instance from inside a Tomcat
web application? Okay, I know that you can the WebappClassLoader reference
through something like:

SomeClass.class.getClassLoader()

but in my case this should be a general routine that can be included in a
number of applications and should
not be bound to the existence of a certain class within the application.

After looking through some of the Tomcat source code, I've got my doubts
that this is possible, but maybe I'm
just overlooking something.

Thnx

Rudolf Visagie
Software Developer
Enerweb (Pty) Ltd.

Tel: (011) 800 3826

The perusal, use, dissemination, copying or storing of this message or its
attachments and the opening of attachments is subject to Enerweb's standard
email disclaimer available at internet address:
www.enerweb.co.za/email_disclaimer.htm or on request from the sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

****************************************************************************
***************************
This footnote confirms that this email message has been scanned by PineApp
Mail-SeCure for the presence of malicious code, vandals & computer viruses.
****************************************************************************
***************************

Reply via email to