2 Replies Latest reply on Apr 4, 2004 3:00 AM by juha

    classloader configuration

    srinivasbv_gowda

      Hi,

      We want associated class files required by ejb jar to get it from lib directory of war file. Is there any way by setting classloader is achievable.
      If so where exactly we want to configure for that to work.

      Thanks
      Srinivas.

        • 1. Re: classloader configuration
          robjuh

          AFAIK classloaders are supposed to by hierachical. So the ear classloader is the parent of the classloader for the war and the ejbjar. You can only inherit from a parent (or the parent of the parent) classloader. As a result, an ejbjar cannot inherit the classloader of a war file, which is what you're trying to do. Proper design in this case would be to place shared libraries in side the ear file and define them as java modules in the ear's descriptor.

          • 2. Re: classloader configuration

            However, the UseJBossWebLoader=true in 3.2.3 does give the EJB deployment visibility into the WEB-INF/lib so it is possible to do.

            Your suggestion works also.