Good links on class loaders. I can't say that I understood everything, but I think that I at least understand the bigger concepts. I can also see why OSGi would have custom class loaders.

Now my questions are:
- How do I determine which class loaders are loading which classes?
- If OSGi is using custom class loaders and JAXB is using different class loaders, will JAXB ever work in OSGi?

Thanks,
 Tim

Felix Meschberger wrote:
Hi,

On 3/19/07, Tim Moloney <[EMAIL PROTECTED]> wrote:
I've not worked with class loaders before.  How do I know which class
loaders are being used?  Where can I read more about them?

Well, you "work with class loaders" all the time, but you don't know.
In fact, the whole OSGi Module spec is centered around Java
ClassLoading. :-)

You will find numerous documentation on class loading on the net, e.g.
http://www.javalobby.org/java/forums/t18345.html
http://www.onjava.com/pub/a/onjava/2005/01/26/classloading.html

Point here is, that two Class instances loaded by different
ClassLoader instances are not the same even thought their byte code
might be exactly the same. And this is one of the tricky things
regarding class loaders because this situation is somewhat difficult
to trace.

I'm not sure that the source for JAXB is available but I'll look.

Thanks for the suggestions.  :)

You are welcome.

Regards
Felix


Reply via email to