Tuesday, March 1, 2011

Getting java web classloader

J2EE 1.3 (and later) containers are required to make the web application class loader visible through the context class loader of the current thread. You can access it like this:
ClassLoader cl = Thread.currentThread().getContextClassLoader();

No comments:

Post a Comment