Re: [Hibernate] ClassLoader injection

2006-02-01 Thread Max Rydahl Andersen
cglibs is one of the exceptional cases - it *has* to load from the classloader it was generated to be consistent. Hibernate is the same league in this case as log4j, jbossaop, spring, xml-parsers, freemarker, velocity, whatever extenable/configurable library i can think of ;) /max Hibernate is

Re: [Hibernate] ClassLoader injection

2006-02-01 Thread baliuka juozas
Hibernate is an exceptional case, it can be used as internal container library to provide EJB3 implementation and all libraries used by hibernate must be designed with this assumption too. CGLIB is designed to be used by container implementation, but it is very simple in our case, correct class lo

Re: [Hibernate] ClassLoader injection

2006-02-01 Thread Max Rydahl Andersen
On Wed, 01 Feb 2006 08:17:33 +0100, baliuka juozas <[EMAIL PROTECTED]> wrote: 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 deplo