• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scheduling execution of Servlets ?

 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Is there a way to schedule the execution of a Servlet in an AS ? If yes, how to achieve this ?
Thanks,
-Navin.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I know, No.
What you are trying to do? we might help you in acheiving your goal.
 
pradeep jaladi
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Naveen,

Are you asking about any specific Tool like 'AS' or is it normal as

id it is normal as then their is not tool or class available until know .

If your application really need it then you can design one class using the thread concept and get the time and schedule your servlets.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Kumar Navin:
Hi!
Is there a way to schedule the execution of a Servlet in an AS ? If yes, how to achieve this ?
Thanks,
-Navin.


What, exactly, do you mean by 'schedule execution'?
Servlets sit and wait for requests from clients (browsers) and send responses to them.

You can control the order in which they are initially loaded by using the load-on-startup tag within the servlet entry in web.xml.
Is that what you mean?
 
Kumar Navin
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually my task is to execute a logic daily at a particular time. Right now I have used a java Program and added it to the scheduler, which invokes the servlet daily.
Is there any other way to accomplish this.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic