• Post Reply Bookmark Topic Watch Topic
  • New Topic

execute jsp files automatically  RSS feed

 
Santosh Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

i wanted to execute jsp program automatically everyday at a particular time.
i mean how to run a jsp program in scheduler.
is that possible


waiting for your reply

regards
santosh
 
David Ulicny
Ranch Hand
Posts: 724
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP/servlet works at request/response principle, so you must generate at the given time the request.
 
Santosh Kumar
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi david

thanks for the info
i am begginer to the jsp/servlets
so can you be a bit specific about how can i go about it
help me out in solving th problem


waiting for your reply


regards
santosh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think David's point is that JSPs are not made to do that.
They are designed to wait for a request from a client (browser) and then respond to that request.

There are libraries out there (Quartz comes to mind) for cron like features from within your java application but you would want to put that functionality into plain old Java objects (POJOs) not JSPs.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!