0 Replies Latest reply on Nov 7, 2006 6:10 PM by editha

    ClassLoaderRepository

    editha

      I get the HierachicalClassLoaderRepository3 of a .war via its mbean Objectname. I would like to add to this repository an instance of (my own) URLClassLoader implementation, because I want this .war to use this classloader instance.
      The Problem is that I only see a registerClassLoader() method that requires a UnifiedClassLoader.
      Is there a way to add a non-UnifiedClassLoader to this repository?

      I tried to solve this task my creating my own BasicLoaderRepository and adding my classloader instance.
      The call
      (LoaderRepository)mbeanserver.getClassLoaderRepository()).getLoaders();
      returns my classloader instance, but it is not used for loading the .war file. Is there maybe a way to attach the classloader instance to the .war?