Re: Tomcat Timers/threads?

2005-04-07 Thread fed fin
Thank you.
Ted.
--- Jesper B.  KiƦr [EMAIL PROTECTED] wrote:
 
 HI
 
 Take a look at Quartz.
 
 Link:
 http://www.opensymphony.com/quartz/
 
 regards
 Jesper B. Kiaer
 
 http://www.jezzper.com
 
 
 
 -Charl Gerber [EMAIL PROTECTED] wrote:
 -
 
 To: tomcat-user@jakarta.apache.org
 From: Charl Gerber
 Date: 04/06/2005 15:11
 Subject: Tomcat Timers/threads?
 
 Does Tomcat 4.1 provide a way to schedule tasks?
 Something similar to java.util.Timer?
 
 BEA WebLogic eg offers a
 weblogic.management.timer.Timer which has the same
 affect, but is controlled by the application
 server.
 
 I've been using a java.util.Timer up to now in
 Tomcat
 4.1. I initialize it in the a
 ServletContextListener
 and gracefully kill it there again when the
 application stops, but strickly speaking this is
 probably not correct. I've had no problems up to
 now,
 though.
 
 Does Tomcat offer a correct(er) solution, or can I
 continue with the java.util.Timer?
 
 Thanks!
 
 

-
 
  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]
 
 

-Ted



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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



Re: Unlimited session timeout

2005-04-07 Thread fed fin
you can set timeout from Tomcat Admin = Connections.
--- David Causse [EMAIL PROTECTED] wrote:
 Hi,
 
 I need in some exceptionnal condition to disable the
 session timeout for 
 one request.
 Is there some convenient way to do so?
 
 My idea is to do this but I'm unsure :
 In the exceptionnal servlet (at the beginning):
 session.setAttribute(OLD_TIMEOUT, new 
 Integer(session.getMaxInactiveInterval()));
 session.setMaxInactiveInterval(-1);
 
 In my filter:
 Integer oldTimeout = (Integer)
 session.getAttribute(OLD_TIMEOUT);
 if(oldTimeout != null) {


session.setMaxInactiveInterval(oldTimeout.intValue());
 }
 
 What do you think about this method is it
 safe/working?
 Maybe there is a way to do it with session listeners
 (by cancelling the 
 call to invalidate, I don't know if it is possible).
 
 Thank you.
 
 David.
 
 

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

-Ted



__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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