axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhijat Thakur" <atha...@bdnacorp.com>
Subject RE: sharing session between servlets and soap services
Date Fri, 17 Oct 2003 01:13:12 GMT
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:hvendelbo@bluprints.com]
Sent: Thursday, October 16, 2003 6:08 PM
To: axis-user@ws.apache.org
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" <athakur@bdnacorp.com>
To: <axis-user@ws.apache.org>
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





Mime
View raw message