axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abhijat Thakur" <>
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(

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.



-----Original Message-----
From: Henrik Vendelbo []
Sent: Thursday, October 16, 2003 6:08 PM
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" <>
To: <>
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.



View raw message