Found this thread on the topic of servletContext:

http://mail-archives.apache.org/mod_mbox/ws-axis-user/200510.mbox/% [EMAIL PROTECTED]

I looked through the code for AxisServlet.java and found that it's only set for POST operations (in the method doPost).

This means that only SOAP operations will get access to servletContext, but not REST operations.

Adding this line to createMessageContext method (right before the return) resolves this issue:

msgContext.setProperty(Constants.SERVLET_CONTEXT, servletConfig.getServletContext());

Can this be considered for the next release?

thx

On 10/27/05, Deepal Jayasinghe <[EMAIL PROTECTED]> wrote:
> done ,
>  now any one can get the ServletContext from msgContxt calling
> getProperty("servletContext");
>
> Thanks,
>  Deepal
> ................................................................
> ~Future is Open~

--
Jian Zhen <[EMAIL PROTECTED]>
http://www.zhen.org




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to