jQuery in Action, 3rd edition
The moose likes JSP and the fly likes date schedular Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "date schedular" Watch "date schedular" New topic

date schedular

Khushdeep Singh

Joined: Jan 31, 2012
Posts: 6
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

Joined: Jan 10, 2002
Posts: 63349

You are asking to use a meat cleaver to paint with. JSP is not the right tool for that job.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Kumaravadivel Subramani
Ranch Hand

Joined: Jul 05, 2008
Posts: 171

According to the MVC pattern you should not do any business processing in JSP. You can do it from EJB/Servlet/java service class.

No pain, No gain.
OCJP 1.6, Liferay Certified Developer 6.1
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63349

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: date schedular
It's not a secret anymore!