You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andrew Vardeman <an...@iastate.edu> on 2002/05/15 23:45:46 UTC

suggestion for session management in Axis API

Hi.  This is sort of a suggestion for the developers, I guess--

I was looking over SimpleSessionHandler.java to get a feel for what it does 
(where it keeps track of active sessions and so on).  I think it would be 
handy if a service had access to the list of active Session objects.  I 
don't know where it would be best to put this for the user.  Maybe the 
MessageContext, if that isn't too confusing.  It would be nice for 
diagnostics, because you could add a method to your service that could list 
active sessions and values of interest from the sessions.

I guess it's possible to sort of do this from within your service by 
checking the session on each request to see if it's in your current list 
and storing a session-scoped object implementing ServiceLifecycle whose 
destroy() method removes its session from an application-scoped list of 
session objects when the session times out, but it sure would be nice if it 
were part of the API.

Anyway, just a thought.  Sorry if it's already in there and I missed it.

Andrew