You could try using the AxisHTTPSessionListener or
javax.servlet.http.HttpSessionListener.

It has a sessionDestroyed(), where you should be able to tell your other
objects that the session is destroyed.

I do it something like this:

public void sessionDestroyed(HttpSessionEvent httpSessionEvent)
{
  MyService myService =
(MyService)httpSessionEvent.getSession().getAttribute
  (<a key to your service endpoint class>);
  myService.resign();
}

To find the key use something like this:
MessageContext mc = MessageContext.getCurrentContext();
org.apache.axis.transport.http.AxisHttpSession session =
  (org.apache.axis.transport.http.AxisHttpSession) mc.getSession();
for (Enumeration enume = session.getKeys(); enume.hasMoreElements();)
{
  System.out.println(enume.nextElement().toString());
}

/Clarence

On 11/9/06, Alexander Hachmann <[EMAIL PROTECTED]> wrote:

Hello,
I wondering if it is possible to ad any listener to the AxisSession that
will be
Invoked before the Session Times out?

I am holding objects that need to be told.

Thanks,
        Alexander


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to