You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ro...@apache.org on 2007/07/10 20:20:08 UTC
svn commit: r555024 -
/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/client/async/CallbackFuture.java
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