[ http://issues.apache.org/jira/browse/AXIS2-412?page=all ]
     
Davanum Srinivas resolved AXIS2-412:
------------------------------------

    Resolution: Fixed

done. added REMOTE_ADDRESS

thanks,
dims

> To Add remote address to the message context in AXIS2
> -----------------------------------------------------
>
>          Key: AXIS2-412
>          URL: http://issues.apache.org/jira/browse/AXIS2-412
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Improvement
>   Components: transports
>  Environment: ALL
>     Reporter: Soumadeep

>
> The remote Address is not being set in the messageContext in 
> AXISServlet.java, this will be required to identify the client address.
> Axis1's AxisServlet
> ===============
> in the createMessageContext(AxisEngine engine, HttpServletRequest req, 
> HttpServletResponse res) method This is how it is set.
> msgContext.setProperty(Constants.MC_REMOTE_ADDR, req.getRemoteAddr());
> This needs to be added in Axis2 (AxisServlet.java), inside the 
> createAndSetInitialParamsToMsgCtxt method.
>  
> msgContext.setProperty(MessageContext.MC_REMOTE_ADDR, 
> httpServletRequest.getRemoteAddr());
> Currently, the constant var MC_REMOTE_ADDR is not there in the 
> MessageContext.java file.
> Can someone please help!!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to