I'm not sure if anyone's really using this functionality, BUT it really is different 
than ClassUtils.setClassLoader()....  Calling setClassLoader() on a MessageContext 
would set the classLoader for a particular request.  The setClassLoader() in 
ClassUtils sets a classLoader to be associated with a particular class for the entire 
JVM.  I could see use cases where the designer of a transport Listener would want to 
use different classLoaders, even for the same classes, depending on the connection or 
the authenticated user or some other context.  The MC APIs would allow them to do that.

Again, I'm not sure anyone actually cares about this, I'm just pointing out that it's 
not quite the same thing.

--Glen

> -----Original Message-----
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 20, 2002 2:14 PM
> To: [EMAIL PROTECTED]
> Subject: MessageContext's getClassLoader/setClassLoader (was RE: cvs
> commit: xml-axis/java/test/wsdl/refattr RefTestServiceTes tCase.java)
> 
> 
> Thanks Tom.
> 
> Related question: Can i get rid of MessageContext's 
> getClassLoader/setClassLoader entrypoints?
> People can use ClassUtils.setClassLoader/getClassLoader to 
> set custom class loaders for specific
> classes.
> 
> Thanks,
> dims
> 
> --- Tom Jordahl <[EMAIL PROTECTED]> wrote:
> > 
> > Wow! +1
> > 
> > This is serious goodness.  
> > Now if we have class loader problems we have one-stop bug 
> fixing. :-)
> > 
> > Nice job Dims!
> > 
> > (An added bonus is that now that Dims' fingerprints are all 
> over the class loader stuff, people
> > will expect him to understand the stuff instead of the rest 
> of us :-)
> > 
> > --
> > Tom Jordahl
> > 
> > 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, June 20, 2002 12:48 PM
> > To: [EMAIL PROTECTED]
> > Subject: cvs commit: xml-axis/java/test/wsdl/refattr
> > RefTestServiceTestCase.java
> > 
> > 
> > dims        2002/06/20 09:48:20
> > 
> >   Modified:    java/src/org/apache/axis Message.java
> >                java/src/org/apache/axis/client Service.java
> >                         ServiceFactory.java
> >                java/src/org/apache/axis/configuration
> >                         DefaultEngineConfigurationFactory.java
> >                java/src/org/apache/axis/deployment/wsdd
> >                         WSDDDeployableItem.java WSDDService.java
> >                         WSDDTargetedChain.java WSDDTypeMapping.java
> >                java/src/org/apache/axis/deployment/wsdd/providers
> >                         WSDDComProvider.java 
> WSDDHandlerProvider.java
> >                java/src/org/apache/axis/description TypeDesc.java
> >                java/src/org/apache/axis/encoding/ser 
> ArrayDeserializer.java
> >                         BaseDeserializerFactory.java
> >                         BaseSerializerFactory.java
> >                java/src/org/apache/axis/handlers JWSProcessor.java
> >                java/src/org/apache/axis/handlers/soap 
> SOAPService.java
> >                java/src/org/apache/axis/message 
> SOAPFaultBuilder.java
> >                java/src/org/apache/axis/providers/java 
> EJBProvider.java
> >                         MsgProvider.java
> >                java/src/org/apache/axis/server AxisServer.java
> >                         DefaultAxisServerFactory.java
> >                java/src/org/apache/axis/transport/http 
> HTTPSender.java
> >                java/src/org/apache/axis/utils JWSClassLoader.java
> >                java/src/org/apache/axis/utils/bytecode
> >                         ExtractorFactory.java
> >                java/src/org/apache/axis/utils/cache ClassCache.java
> >                java/src/org/apache/axis/utils/compiler 
> CompilerFactory.java
> >                         Javac.java
> >                java/src/org/apache/axis/wsdl/fromJava Emitter.java
> >                java/src/org/apache/axis/wsdl/toJava Emitter.java
> >                java/test/functional FunctionalTests.java
> >                java/test/wsdl/interop3 Interop3TestCase.java
> >                java/test/wsdl/refattr RefTestServiceTestCase.java
> >   Added:       java/src/org/apache/axis/utils ClassUtils.java
> >   Log:
> >   - Fix for Bug 8423 - AxisClassLoader cannot load service class
> >   - Cleanup and centralize class finding mechanism (see 
> loadClass in ClassUtils.java)
> >   - Move the Hashtable of ClassLoaders out of 
> JWSClassLoader so that it can be used to register
> > and lookup ANY type of class/classloader.
> >   
> 
> 
> =====
> Davanum Srinivas - http://xml.apache.org/~dims/
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 

Reply via email to