This post originated from an RSS feed registered with Java Buzz
by Goldy Lukka.
Original Post: Scheduling Jobs in a Java Web Application
Feed Title: Xyling Java Blogs
Feed URL: http://www.javablogs.xyling.com/thisWeek.rss
Feed Description: Your one stop source for Java Related Resources.
In large J2EE web applications, a common task is scheduling tasks. Developers want to do all kinds of operations that can run at specified intervals and complete tasks that don't require user input. Java has a myriad of ways to accomplish this task, but there is no standard for doing this in a web application. This can become a great problem if you have many developers working on the same project and each of them decides to implement scheduling in his or her own way. Memory and synchronization issues are the first two things that come to mind when each developer rolls their own solution. In fact, some developers are tempted to make system calls to an operating-system-level scheduling mechanism like cron on Unix platforms. This is not only a bad programming practice, but it throws portability right out of the window.