I have a question regarding retrieving MessageContext with Axis2 in attempt to retrieve ServletContext.
I used the following code in Axis1, which worked perfectly:
MessageContext = MessageContext.getCurrentContext();
HttpServlet servlet = (HttpServlet) mycontext
.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
ServletConfiltered= servlet.getServletContext()
HttpServlet servlet = (HttpServlet) mycontext
.getProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST);
ServletConfiltered= servlet.getServletContext()
However, the getCurrentContext static method is no longer supported with the Axis2 implementation of MessageContext.
How can I retrieve the MessageContext and/or ServletContext with Axis2?
Thanks,
Amit
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
