• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Cron job in assignment

 
Kuppusamy Venkatasubramanian
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

[Redacted]

Thanks,
Kuppusamy.V.,
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11853
185
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Mihai Lihatchi
Ranch Hand
Posts: 138
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Kuppusamy Venkatasubramanian
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Cheers,
Kuppusamy.V.,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic