I am trying to write web service code which able to maintain the same session on different request.
The code is as below:
When i am executing the client code, the new session id get generated. but i want to maintain the same session for the certain period, so when next request will go, that request will share the existing session id not the new session. i search through blog, one of blog i found that they are using hashset for storing session id. but how we can retain session timeout value for certain timeinterval. i am new in a web service. guide me
I have copied here two different responses with same servicegroupId,Are you looking for the same.
Joined: Feb 16, 2012
I am using websphere7.0 for client program and , i am getting the exception : javax.xml.ws.WebServiceException: Error: Maintain Session is enabled but none of the session properties (Cookies, Over-written URL) are returned. while if i am running the same client program from the console then i am receiving same session id. Please suggest me why in the browser level client program generating exception.