Re: access to ServletConfig from service class

2007-08-16 Thread Upul Godage
Hi Amila, I could not find anywhere in the code that sets the property of MC_HTTP_SERVLET. But there is this MC_HTTP_SERVLETCONTEXT, which is set in org.apache.axis2.deployment.WarBasedAxisConfigurator.setConfigContext(ConfigurationContext configContext) public void setConfigContext(Configur

Re: access to ServletConfig from service class

2007-08-16 Thread Amila Suriarachchi
Are you running on Tomcat? To use this attribute you should deploy the Axis2 war distribution. Amila. On 8/15/07, feh <[EMAIL PROTECTED]> wrote: > > > > > Raghu Upadhyayula wrote: > > > > Hi Feh, > > > > You can get the ServletContext as follows (In Axis 1.3). Which > > Axis version are yo

RE: access to ServletConfig from service class

2007-08-15 Thread feh
Raghu Upadhyayula wrote: > > Hi Feh, > > You can get the ServletContext as follows (In Axis 1.3). Which > Axis version are you using? > For Axis 1.3 > MessageContext context = MessageContext.getCurrentContext(); > HttpServlet servlet = > (HttpServlet)context.getProper

RE: access to ServletConfig from service class

2007-08-14 Thread Raghu Upadhyayula
Hi Feh, You can get the ServletContext as follows (In Axis 1.3). Which Axis version are you using? For Axis 1.3 MessageContext context = MessageContext.getCurrentContext(); HttpServlet servlet = (HttpServlet)context.getProperty(HTTPConstants.MC_HTTP_SERVLET); Se