axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sandak...@apache.org
Subject svn commit: r608797 - /webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java
Date Fri, 04 Jan 2008 10:48:36 GMT
Author: sandakith
Date: Fri Jan  4 02:48:35 2008
New Revision: 608797

URL: http://svn.apache.org/viewvc?rev=608797&view=rev
Log:
Reverting back the change done to the JAXWS Class Loader, Since the svn commit: r604813 done
to the Axis2 trunk resolve the issue already

Modified:
    webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java

Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java?rev=608797&r1=608796&r2=608797&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/server/JAXWSMessageReceiver.java
Fri Jan  4 02:48:35 2008
@@ -80,12 +80,8 @@
 
         org.apache.axis2.description.Parameter svcClassParam =
                 service.getParameter(PARAM_SERVICE_CLASS);
-    	ClassLoader prevCl = Thread.currentThread().getContextClassLoader(); 
         try {
-        	//Set the service class loader
-            ClassLoader newCl = service.getClassLoader();
-        	Thread.currentThread().setContextClassLoader(newCl);
-        	
+
             if (svcClassParam == null) {
                 throw new RuntimeException(
                         Messages.getMessage("JAXWSMessageReceiverNoServiceClass"));
@@ -180,8 +176,6 @@
                     ThreadContextMigratorUtil.performContextCleanup(
                             Constants.THREAD_CONTEXT_MIGRATOR_LIST_ID, axisResponseMsgCtx);
                 }
-                //Revert back from service class loader to the previous class loader
-                Thread.currentThread().setContextClassLoader(prevCl);
             }
 
         } catch (Exception e) {
@@ -199,9 +193,6 @@
             // The AxisEngine expects an AxisFault
             throw AxisFault.makeFault(wse);
 
-        } finally {
-        	// In a case of exception also swith from service cl to previous cl
-        	Thread.currentThread().setContextClassLoader(prevCl);
         }
 
         //This assumes that we are on the ultimate execution thread



---------------------------------------------------------------------
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