wood burning stoves 2.0*
The moose likes Servlets and the fly likes Send Mail at perticular time(By capturing database trigger) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Send Mail at perticular time(By capturing database trigger)" Watch "Send Mail at perticular time(By capturing database trigger)" New topic
Author

Send Mail at perticular time(By capturing database trigger)

Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
Hi
All
Im using database as Oracle. Now i have written servlets (Mail Servlet)which used to send mail on user events(It means when user clicks send mail button).
Now i want to run this programme automatically at perticular time. So how can i achieve this.I think we will have to use data base trigger in this case. Can anybody guide me in this case.
Thanx
sanjay


Eat JAVA, Drink JAVA, Sleep Java
manoj bagul
Greenhorn

Joined: Sep 20, 2001
Posts: 11
Hello ,
You can either set a batch job or set a cron job depending on the Platfrom u r using and execute that job at particular time.
Manoj.
Sanjay pts
Ranch Hand

Joined: Nov 07, 2000
Posts: 357
Hi
Manoj
If you can tell me in detail then things will be good for me.
Thanx
sanjay
VS Prapoorna
Greenhorn

Joined: Oct 13, 2001
Posts: 22
hi,
I know a little about how to schedule tasks in windows platform.
what you need to do is
1. go to MyComputer then
2. click on the 'ScheduleTask' program.
That program wizard will help u in scheduling ur tasks.
one more thing is if u want to invoke ur jsp page in a particular time then
do the coding in that jsp page and then call the jsp page in a html page in <body onload=""> method.
And then in schedule task wizard call give the html page path.
i think i am clear in my point.
regards,
Sarada Prapoorna.V
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Send Mail at perticular time(By capturing database trigger)
 
Similar Threads
print Screen from a jsp
Send an email on timer
How To Find out the Password from the database
keep track of a field in database
Need to Invoke a Java Program from a trigger