Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 9th, 2009, 01:15 AM
Authorized User
 
Join Date: Sep 2008
Posts: 87
Thanks: 1
Thanked 0 Times in 0 Posts
Default scheduling a process

Hi,
I have a requirement of creating files and sending mails from my java application based on some conditions like ,the user selects the date and time from the UI and fills the details.on that particular date and time i need to create a file and trigger a mail with the filled in details.
how can i do this.

Regards
Raj
 
Old February 9th, 2009, 08:05 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

There are several ways to do this, but they depend on what operating system you are using.

If you are using Linux, then you could use CRON to schedule a job (Java executable code) that would run, say, once a minute. It could look in the DB to see what is scheduled for that date and time and perform the operations. On Windows, you could do the same thing with the task manager.

You COULD even have the CRON job execute JSP code (say a servlet), but there's no real need to use JSP for this on the "back end."





Similar Threads
Thread Thread Starter Forum Replies Last Post
process.startinfo opens new instance of process Anypond General .NET 0 August 28th, 2008 05:35 AM
catalog scheduling riketa.garg SQL Language 0 April 8th, 2008 12:56 AM
Scheduling mwahab Excel VBA 0 February 23rd, 2007 02:24 PM
Scheduling reports saf01 Crystal Reports 0 October 26th, 2005 09:37 AM
Scheduling mrkyn Classic ASP Basics 4 December 1st, 2003 03:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.