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 Alexander Hachmann <ax...@thesofa.de> on 2006/11/09 18:22:17 UTC

Axis - Session Timeout Listener

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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Please give link to good tutorials for AXIS2

Posted by Thilina Gunarathne <cs...@gmail.com>.
try [1].  WSO2.net contains lot of articles and links relating to
Axis2 and surrounding projects..

Have a look at this too [2]..

~Thilina

[1] http://www.wso2.net/projects/axis2/java
[2] http://svn.apache.org/repos/asf/webservices/axis2/branches/java/1_1/xdocs/articles.html

On 11/9/06, oslezka <os...@lohika.com> wrote:
> Please give link to good tutorials for AXIS2
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
http://webservices.apache.org/~thilina/
http://thilinag.blogspot.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Please give link to good tutorials for AXIS2

Posted by oslezka <os...@lohika.com>.
Please give link to good tutorials for AXIS2

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Axis - Session Timeout Listener

Posted by Clarence Dahlin <cl...@gmail.com>.
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 <ax...@thesofa.de> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>