axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r440007 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Date Mon, 04 Sep 2006 10:11:57 GMT
Author: deepal
Date: Mon Sep  4 03:11:53 2006
New Revision: 440007

URL: http://svn.apache.org/viewvc?view=rev&rev=440007
Log:
no need to set the ServletContext for each request , once we set that in configuration context
thats enough.

Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java?view=diff&rev=440007&r1=440006&r2=440007
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/http/AxisServlet.java
Mon Sep  4 03:11:53 2006
@@ -101,7 +101,7 @@
         msgContext.setProperty(Constants.Configuration.TRANSPORT_IN_URL, req.getRequestURL().toString());
         msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
         msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, req);
-        msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, servletConfig.getServletContext());
+//        msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT, servletConfig.getServletContext());
         return msgContext;
     }
 
@@ -279,6 +279,9 @@
             axisConfiguration.addParameter(servletConfigParam);
             ListenerManager listenerManager = new ListenerManager();
             listenerManager.init(configContext);
+            // setting ServletContext into configctx
+            configContext.setProperty(HTTPConstants.MC_HTTP_SERVLETCONTEXT,
+                    servletConfig.getServletContext());
             TransportInDescription transportInDescription = new TransportInDescription(
                     new QName(Constants.TRANSPORT_HTTP));
             transportInDescription.setReceiver(this);
@@ -403,19 +406,19 @@
         if (port == null) {
             port = "8080";
         }
-        
-        if(ip == null) {
+
+        if (ip == null) {
             try {
                 ip = HttpUtils.getIpAddress();
             } catch (SocketException e) {
                 throw new AxisFault(e);
             }
         }
-        
+
         return new EndpointReference("http://" + ip + ":" + port + '/' +
-                 configContext.getServiceContextPath() + "/" + serviceName);
+                configContext.getServiceContextPath() + "/" + serviceName);
     }
-    
+
     protected MessageContext createMessageContext(HttpServletRequest req,
                                                   HttpServletResponse resp) throws IOException
{
         MessageContext msgContext = new MessageContext();



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