> > Thread.getContextCL() is the only way. If a library > doesn't use > Thread.getCCL() then it is a poorly written library. > No, this kind of library it just not designed to be used as shared library, if library is deployed with application then "MyClass.class.getClassLoader()" is the right classloder (you do not want to have more than one classloader per application). Thread.getCCL() is usefull for container provider libraries or for exotic application deployment (in shared/lib) to save memory for class instances.
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ hibernate-devel mailing list hibernate-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/hibernate-devel