can you access the ServletConfiguration using the http request object
if so you can get the request object,
When creating messageContext Axis2 store the request and response objects in
message Context
msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETREQUEST, request);
msgContext.setProperty(HTTPConstants.MC_HTTP_SERVLETRESPONSE,
response);
so Inyour web service you can access it through
MessageContext.getCurrentMessageContext().getProperty(
HTTPConstants.MC_HTTP_SERVLETREQUEST);
But I think the correct way is to store the ServletContext in
AxisConfigurationContext.
I'll send a mail to developer list regarding this.
Amila.
On 8/16/07, mchmiel <[EMAIL PROTECTED]> wrote:
>
> I need to integrate a .NET platform and Java and for this task I have
> choosen WebServices. First technology for the Java part was ofcourse
> Axis. But then I had to redesign the
> whole thing becouse of the caching problem . Here is the explanation:
> 1. I have a MemoryModel (a JDOM tree) which has to be loaded as the
> Tomcat AppServer is stertin
> 2. I need to implement a WS taht manages the resourse (MemoryModel)
> 3. Then the next WebService allows users to invoke read/write operations
> on the first Ws that manages the MemoryModel
>
> First of all cannot find how to preload webservice, and second issue how
> to share a complex Object between WebServices (inside the same WebApp)
>
> I started from teh beggining and using servlets I could managed to do so
> ... that is.
> 1. PreLoad the servlet
> 2. Write a caching servlet and register the MemeoryModel in ServeltContext
> 3. Write a Servlet that could (pretend to be a WS)
> 4, the last task is extreamly hard I looked throuh kSOAP, JAXM and so on
> but the i do not need the servet to understand SOAP but to be
> a WS?
> In such case can Axis help me?
> Or even simplier task.... can Axis WS see a servlet context and register
> internally my MemeoryModel?
>
> Thanks For any help
>
> mchm
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Amila Suriarachchi,
WSO2 Inc.