WebLogic and custom ClassLoader. HELP!!!
Posted on 2003-03-20
I'm stuck here... According to what I have read so far (and please correct me if I am wrong), it is impossible to write a custom class loader and force Weblogic to use this class loader instead of its own. It is possible though to load classes explicitly using your own custom class loader by doing something like this (as far as I can tell):
MyCustomClassLoader cl = new MyCustomClassLoader();
Class c = cl.loadClass(name, resolve);
Object obj = c.newInstance();
Is it at least possible to make Weblogic use MyCustomClassLoader for a specific JAR file or a package? I have read something about weblogic-application.xml, but neither sure that it would work nor could I find any examples how to set it up.
P.S. I can add more points if you find my question to be "extremely difficult".