Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threads in JSP/Servlets

 
Ritesh Pareek
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am having a problem while Using Timer class in jsp (of course due to my misconceptions). Scenario is


Starting Timer thread from jsp like this



This is my Scheduler class



And here is my SynWithMyWorldSch.java



My questions are:

1. I need to create a system of starting/stoping scheduler in such a way so that it should not bound with particular session, once someone logged-in runscheduler and than gone away for years and than come back and logged in to stop scheduler.
2. Basically this point is also related with the point mentioned above. Whenever we hit server very first ... have to go will edit this post after 2hr
 
Ritesh Pareek
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My questions are:

1. I need to create a system of starting/stoping scheduler in such a way so that it should not bound with particular session, once someone logged-in runscheduler and than gone away for years and than come back and logged in to stop scheduler.
2. Basically this point is also related with the point mentioned above. When a servlet thread start a new thread into it, and than logged out, Will new thread killed or not? If not, than If i call isRunning() what will it return.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic