axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Amit Patel <>
Subject Re: Axis2 - HttpServletContext via MessageContext
Date Fri, 28 Jul 2006 14:13:44 GMT
I'm not familiar with the Handler concept.  Can you please provide me with a link or an example
on how to implement this?  
  Also if there is a way of accessing the MessageContext in the Server class itself, that
would be preferred?
  Thanks again!

Deepal Jayasinghe <> wrote:

Amit Patel wrote:

> 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()

in Axis2 use the following

> However, the getCurrentContext static method is no longer supported
> with the Axis2 implementation of MessageContext.

yes , Axis2 does not have that concept.

> How can I retrieve the MessageContext and/or ServletContext with Axis2?

Its depend on the location where you are trying to access that , if you
want to access that inside a handler then of course you can do that.

> Thanks,
> Amit
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around

~Future is Open~ 

To unsubscribe, e-mail:
For additional commands, e-mail:

See the all-new, redesigned  Check it out.
View raw message