Discussion:
prefer-web-inf-classes equivalent
(too old to reply)
Mathieu Girard
2005-01-06 13:10:13 UTC
Permalink
Hi,

There is a special weblogic feature that allows web application to use their
own version of specific classes by subverting the classloader delegation
model so that class definitions from the Web application are loaded in
preference to class definitions in higher-level classloaders. (see
http://e-docs.bea.com/wls/docs81/programming/classloading.html#1082452)

I was wondering if such a feature existed for ejb. I checked the
documentation and I didnt find anything about it, but maybe I just missed
it. It would be very helpful for me.

Thanks
Rob Woollen
2005-01-06 20:51:15 UTC
Permalink
There isn't an exact equivalent for EJB. Can you provide some more
details on your problem? Perhaps there's an alternative solution.

-- Rob
Post by Mathieu Girard
Hi,
There is a special weblogic feature that allows web application to use their
own version of specific classes by subverting the classloader delegation
model so that class definitions from the Web application are loaded in
preference to class definitions in higher-level classloaders. (see
http://e-docs.bea.com/wls/docs81/programming/classloading.html#1082452)
I was wondering if such a feature existed for ejb. I checked the
documentation and I didnt find anything about it, but maybe I just missed
it. It would be very helpful for me.
Thanks
Mathieu Girard
2005-01-07 13:11:22 UTC
Permalink
My problem is quite simple. I have several ejb jars deployed and they
currently all use some utility classes that are accessible through the
system classpath. Now I want one of those ejb jars to use a specific
version of the utility classes so I packaged this particular ejb jar along
with my special utility classes, but it will always prefer the classes in
the system classpath.

I know this behaviour is normal, because of the way classloaders work (they
always ask their parent classloader to find a class before trying to load it
theirselves), but I was looking for a trick to invert this behaviour, just
like prefer-web-inf-classes will do for web applications.
Post by Rob Woollen
There isn't an exact equivalent for EJB. Can you provide some more
details on your problem? Perhaps there's an alternative solution.
-- Rob
Post by Mathieu Girard
Hi,
There is a special weblogic feature that allows web application to use
their own version of specific classes by subverting the classloader
delegation model so that class definitions from the Web application are
loaded in preference to class definitions in higher-level classloaders.
(see
http://e-docs.bea.com/wls/docs81/programming/classloading.html#1082452)
I was wondering if such a feature existed for ejb. I checked the
documentation and I didnt find anything about it, but maybe I just missed
it. It would be very helpful for me.
Thanks
Loading...