File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Cron job in assignment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Cron job in assignment" Watch "Cron job in assignment" New topic

Cron job in assignment

Kuppusamy Venkatasubramanian
Ranch Hand

Joined: Dec 30, 2004
Posts: 91



SCJP1.4, SCBCD 1.3, SCWCD 1.4, SCEA 5, JLPT-N3
My Blog
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11778

Please remember that we are not allowed to discuss the assignments or potential solutions to the assignment. Please read Position on real assignment (Part 2) questions if you are in any doubts about this.

The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Mihai Lihatchi
Ranch Hand

Joined: Oct 28, 2005
Posts: 138

In general I would not recommend a cron job as you need to rely on a *.nix distribution to have it working ( I am doing my asignment on a Linux machine so I can't check if there is a Windows equivalent now )
You have the TimerService in EJB 3 (even in EJB 2.1) that roughly can do a basic version of cron. If it is not enough there is always Quartz.
I used both ( at work not in the assignment) and I see it fit for tasks that need to be run at certain time intervals/moments.
If I were giving the specs to the developers I would simply mention the method that needs to be marked with @Timeout (or run at a certain time interval). For the rest you have the dev team (and though we try to be architects we should not underestimate the developers).
Just my 0.02 $

PS : Andrew if I broke the rules by discussing technical solutions please remove my post as well I really do not want to damage the credibility of the certification .

Better, faster, lighter Java ... you mean Ruby right ?
SCEA5,SCBCD1.3,SCWCD5,SCJP1.4 - memories from my youth.
Kuppusamy Venkatasubramanian
Ranch Hand

Joined: Dec 30, 2004
Posts: 91

Sorry if i had violated the rules of the forum. I posted my post in such a way that was too generic about the assignment. But it seemed like asking for a specific solution.

I agree. Here's the link:
subject: Cron job in assignment
jQuery in Action, 3rd edition