Your web service always has access to the MessageContext. Once you have this, you can
pretty much get any context data you need:
import javax.servlet.*;
import org.apache.axis.*;
MessageContext mctx = MessageContext.getCurrentContext();
GenericServlet axis =
(GenericServlet)mctx.getProperty("transport.http.servlet");
ServletContext ctx = axis.getServletContext();
...
-----Original Message-----
From: dumdum 420 [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 27, 2003 12:01 PM
To: [EMAIL PROTECTED]
Subject: Accessing ServletContext in the webservices method
I have cached some data in my ServletContext. Now I have made a webservice
which need to access that data which is in the ServletContext.
I am using AXIS api for my webservices and do no know how can I explore
these capabilites.
I mean it this possible:
public void m1(ServletContext application){
}
This confuses me to then how will the client will make a call to this
service.
If these is another way please do suggest.
Bhanu
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail