You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Michael Ni <mi...@hotmail.com> on 2003/03/16 22:30:58 UTC
application scope question
for usebean, i know the bean expires for scope session when the browser is
closed. but for scope application, when does the bean expire? does it keep
running even after the person who called the bean exits his browser? if so,
how can the bean terminate itself in an application scope.
mike
_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: application scope question
Posted by Eric Larson <er...@teaminteract.com>.
The session bean doesn't actually expire when the browser window is
closed. It times out at some point in the future when it hasn't been
accessed for some number of minutes that you can configure.
Theoretically you could manipulate session beans using Listeners to gain
access to the beans after the client closes his browser window.
Application scope objects don't expire except when the application
terminates. You can manipulate them using removeAttribute calls, etc.
On Sun, 2003-03-16 at 16:30, Michael Ni wrote:
> for usebean, i know the bean expires for scope session when the browser is
> closed. but for scope application, when does the bean expire? does it keep
> running even after the person who called the bean exits his browser? if so,
> how can the bean terminate itself in an application scope.
>
> mike
>
> _________________________________________________________________
> The new MSN 8: smart spam protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: application scope question
Posted by Tim Funk <fu...@joedog.org>.
Application scope lasts for the life of the webapp. A webapps ends when
either:
a) Tomcat stops running
b) The machine stop running
c) The webapp is restarted
-Tim
Michael Ni wrote:
> for usebean, i know the bean expires for scope session when the browser
> is closed. but for scope application, when does the bean expire? does
> it keep running even after the person who called the bean exits his
> browser? if so, how can the bean terminate itself in an application scope.
>
> mike
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org