what i want to do is to create a session in the soap service and then access the same 
session in a servlet. In my understanding if i create a session in service using
MessageContext context = MessageContext.getCurrentContext();
            HttpServletRequest req = (HttpServletRequest) context.getProperty(
                    HTTPConstants.MC_HTTP_SERVLETREQUEST);
req.getSession(true);

Now in my servlet i already have a request object and so when i do 
requestObj.getSession() i should get the same session object which was created in the 
services. However this does not happen. 

Also i have implemented a HttpSessionListener which does not work when i create a 
session in SOAPService but works when session is created in a servlet. 

How do i resolve these issues.

thanks

abhijat


-----Original Message-----
From: Henrik Vendelbo [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 16, 2003 6:08 PM
To: [EMAIL PROTECTED]
Subject: Re: sharing session between servlets and soap services


Apparently the session support is still being worked on, although I have
little clue what the plans are.

You can sub-class the AxisServlet if you need to access servlet
functionality until then

----- Original Message ----- 
From: "Abhijat Thakur" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 17, 2003 1:12 AM
Subject: sharing session between servlets and soap services



I have apache axis running under Tomcat. However session created in a
service cannot be accessed in a regular servlet even though the servlet and
the soap service are under the same instance of Tomcat. How can we share
sessions between servlets and soap services.

thanks

abhijat




Reply via email to