You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rishi krish <ri...@gmail.com> on 2007/06/12 20:00:29 UTC

getting ServletConfig instance from MessageContext in Axis2 1.1

Hi
I was wondering if there is a way to get the ServletConfig [not
ServletContext] handle of the AxisServlet from the MessageContext instance
in my web service class. I tried the following code and it didnt work


Servlet servlet = (Servlet)MessageContext.*getCurrentMessageContext*().

getProperty(org.apache.axis2.transport.http.HTTPConstants.*MC_HTTP_SERVLET*
);

*return* servlet.getServletConfig();------>got NullpointerException here



Is there a way to do this inside the service.


-- 
thanks
Rishi