axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r413591 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Date Mon, 12 Jun 2006 06:57:09 GMT
Author: deepal
Date: Sun Jun 11 23:57:09 2006
New Revision: 413591

URL: http://svn.apache.org/viewvc?rev=413591&view=rev
Log:
- setting ServletContext in both get and post cases

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

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java?rev=413591&r1=413590&r2=413591&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/AxisServlet.java
Sun Jun 11 23:57:09 2006
@@ -90,6 +90,7 @@
         msgContext.setProperty(Constants.Configuration.TRANSPORT_IN_URL, httpServletRequest.getRequestURL().toString());
         msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP);
         msgContext.setProperty(Constants.HTTP_SERVLET_REQUEST, httpServletRequest);
+        msgContext.setProperty(Constants.SERVLET_CONTEXT, servletConfig.getServletContext());
 
         return msgContext;
     }
@@ -139,7 +140,6 @@
             msgContext = createAndSetInitialParamsToMsgCtxt(msgContext, res, req);
 
             // adding ServletContext into msgContext;
-            msgContext.setProperty(Constants.SERVLET_CONTEXT, servletConfig.getServletContext());
             out = res.getOutputStream();
             HTTPTransportUtils.processHTTPPostRequest(msgContext, req.getInputStream(), out,
                     req.getContentType(), req.getHeader(HTTPConstants.HEADER_SOAP_ACTION),
@@ -342,6 +342,7 @@
         // set the transport Headers
         msgContext.setProperty(MessageContext.TRANSPORT_HEADERS, getHeaders(req));
         msgContext.setServiceGroupContextId(UUIDGenerator.getUUID());
+        msgContext.setProperty(Constants.SERVLET_CONTEXT, servletConfig.getServletContext());
         return msgContext;
     }
 



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