axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r555024 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java
Date Tue, 10 Jul 2007 18:20:08 GMT
Author: rott
Date: Tue Jul 10 11:20:08 2007
New Revision: 555024

URL: http://svn.apache.org/viewvc?view=rev&rev=555024
Log:
AXIS2-2935 - Set async callback ClassLoader to the
original client's ClassLoader (credit Nick Gallardo)

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java?view=diff&rev=555024&r1=555023&r2=555024
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java
Tue Jul 10 11:20:08 2007
@@ -222,6 +222,13 @@
         // Now that the content is available, call the JAX-WS AsyncHandler class
         // to deliver the response to the user.
         try {
+            ClassLoader cl = handler.getClass().getClassLoader();
+        	if (log.isDebugEnabled()) {
+        		log.debug("Setting up the thread's ClassLoader");
+        		log.debug(cl.toString());
+        	}
+        	Thread.currentThread().setContextClassLoader(cl);
+            
             if (debug) {
                 log.debug("Calling JAX-WS AsyncHandler with the Response object");
                 log.debug("AyncHandler class: " + handler.getClass());



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message