geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r545584 - /geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOEndpointLifecycleManager.java
Date Fri, 08 Jun 2007 18:35:25 GMT
Author: gawor
Date: Fri Jun  8 11:35:24 2007
New Revision: 545584

URL: http://svn.apache.org/viewvc?view=rev&rev=545584
Log:
set the service object property

Modified:
    geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOEndpointLifecycleManager.java

Modified: geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOEndpointLifecycleManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOEndpointLifecycleManager.java?view=diff&rev=545584&r1=545583&r2=545584
==============================================================================
--- geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOEndpointLifecycleManager.java
(original)
+++ geronimo/server/trunk/modules/geronimo-axis2/src/main/java/org/apache/geronimo/axis2/pojo/POJOEndpointLifecycleManager.java
Fri Jun  8 11:35:24 2007
@@ -18,6 +18,7 @@
  */
 package org.apache.geronimo.axis2.pojo;
 
+import org.apache.axis2.context.ServiceContext;
 import org.apache.axis2.jaxws.context.factory.MessageContextFactory;
 import org.apache.axis2.jaxws.context.utils.ContextUtils;
 import org.apache.axis2.jaxws.core.MessageContext;
@@ -43,8 +44,13 @@
             // This is a special case, called at init time
             createServiceInstance(serviceClass);
         } else {
+            org.apache.axis2.context.MessageContext msgContext = context.getAxisMessageContext();
+            
+            ServiceContext serviceContext = msgContext.getServiceContext();
+            serviceContext.setProperty(ServiceContext.SERVICE_OBJECT, this.instance);
+            
             // associate JAX-WS MessageContext with the thread
-            POJOWebServiceContext.setMessageContext(createSOAPMessageContext(context)); 
          
+            POJOWebServiceContext.setMessageContext(createSOAPMessageContext(context)); 
         }
         
         return this.instance;



Mime
View raw message