• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Scheduling execution of Servlets ?

 
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As a matter of fact.....
https://coderanch.com/t/359982/Servlets/java/Servlet-Timed-Reloading
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic