> From: scarlson [mailto:scarl...@i2s.com]
> Subject: RE: Tomcat / Java JNI and Classloading issues
> 
> So if the WebAppClassLoader delegates to common or shared, 
> the contextClassLoader will still report WebApp and not 
> common or shared, just wanted to be clear on that.

That is correct; the contextClassLoader is associated with a thread, not a 
class.  If you want to find out which ClassLoader was used for a particular 
class, use Object.getClass().getClassLoader() (or 
<classname>.class.getClassLoader(), if you know the name of the class).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to