Re: SessionListener invoked sometimes and not others

2005-10-10 Thread Jon Wingfield
And possibly a HttpSessionActivationListener object as a session 
attibute. The sessionDidActivate() method on the object gets called if 
the session is still valid when tomcat restarts. You can use this to fix 
your state.


HTH,

Jon

Mark Thomas wrote:
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
So after a restart of tomcat, I login and it appears the 
session is still

valid, so it does not go through my session listener.

I need to be aware of the web application lifecycle and want to grab a
resource when the webapp starts and release when the web app 
goes away. 
How do I do that?



Use a ServletContextListener.

Mark


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





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



RE: SessionListener invoked sometimes and not others

2005-10-08 Thread Mark Thomas
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 So after a restart of tomcat, I login and it appears the 
 session is still
 valid, so it does not go through my session listener.
 
 I need to be aware of the web application lifecycle and want to grab a
 resource when the webapp starts and release when the web app 
 goes away. 
 How do I do that?

Use a ServletContextListener.

Mark


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



Re: SessionListener invoked sometimes and not others

2005-10-08 Thread Dean Hiller
My web app has two servlets. One JSF Faces servlet and another servlet 
for processing AJAX requests from javascript. I want to know when the 
app starts and when the app is done. Is the only way to do this is to 
have a ServletContextListener listening to both those servlets? On the 
first one, I get resources and on the last one being cleaned up, I 
destroy the resources. I guess this works. I just wish I had access to 
the app lifecycle.

thanks,
dean

Mark Thomas wrote:

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
So after a restart of tomcat, I login and it appears the 
session is still

valid, so it does not go through my session listener.

I need to be aware of the web application lifecycle and want to grab a
resource when the webapp starts and release when the web app 
goes away. 
How do I do that?
   



Use a ServletContextListener.

Mark


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

 




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



Re: SessionListener invoked sometimes and not others

2005-10-08 Thread Dean Hiller

whoops, nevermind.  stupid question I found out after poking around.
dean

Dean Hiller wrote:

My web app has two servlets. One JSF Faces servlet and another servlet 
for processing AJAX requests from javascript. I want to know when the 
app starts and when the app is done. Is the only way to do this is to 
have a ServletContextListener listening to both those servlets? On the 
first one, I get resources and on the last one being cleaned up, I 
destroy the resources. I guess this works. I just wish I had access to 
the app lifecycle.

thanks,
dean

Mark Thomas wrote:

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] So after a 
restart of tomcat, I login and it appears the session is still

valid, so it does not go through my session listener.

I need to be aware of the web application lifecycle and want to grab a
resource when the webapp starts and release when the web app goes 
away. How do I do that?
  



Use a ServletContextListener.

Mark


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

 




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




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