This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

date schedular

 
Khushdeep Singh
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to make in scheduler in JSP which delete row in database according to date.
which run automatically without any request. kindly give me suggestion for this.

thanks in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64981
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are asking to use a meat cleaver to paint with. JSP is not the right tool for that job.
 
Kumaravadivel Subramani
Ranch Hand
Posts: 171
Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to the MVC pattern you should not do any business processing in JSP. You can do it from EJB/Servlet/java service class.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64981
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, even a servlet is a poor choice. JSP and servlets are intended to response to user requests. A process that needs to go off at scheduled times without a request likely doesn't even belong in a web application but should be handled by a separate process on the server running either as a daemon or fired off as a cron job.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic