I'm not sure I understand, but A ClassLoader will only load a Class once. After it has been loaded it is cached in that ClassLoader forever.
I highlighted that part, since you can re-load Classes if they change by throwing away the ClassLoader that loaded them and starting a new one.
--------------------------------------------------------------------------
Yes, I do undestand that. I do have a new Class Loader which I invoke from a client by sending a JMS message. While calling the new Class Loader, I pass it the class that I want reloaded. I see the new class loader being instantiated, the overridden findClass() of the new Class Loader being called, the findClass() finds my new class & returns a Class obj. after a call to defineClass(). All this is happening. But, when I run my
test case, I still get the same results as if the old version of the Class file I was trying to load is present in the JVM, not the new one.
I hope I have been clear this time.
thx.