Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Re: cron job or EJB timer?

Reply
Thread Tools

Re: cron job or EJB timer?

 
 
Arne Vajh°j
Guest
Posts: n/a
 
      09-07-2008
Albretch Mueller wrote:
> I know there is sort of a EJB Timer, but I wonder about the actual
> benefits and/or to which extent it offers you the same thing *nix cron
> jobs just wrapped in java?


> What would be the pros and cons or going either way?


The cron job will run in a separate JVM and need to access the
app server remotely, while the EJB timer will run inside the app
server and have direct access to everything.

The EJB timer is a portable mechanism while there are huge
differences between *nix cron and Windows scheduler.

Arne
 
Reply With Quote
 
 
 
 
Robert Klemme
Guest
Posts: n/a
 
      09-13-2008
On 07.09.2008 06:05, Arne Vajh°j wrote:
> Albretch Mueller wrote:
>> I know there is sort of a EJB Timer, but I wonder about the actual
>> benefits and/or to which extent it offers you the same thing *nix cron
>> jobs just wrapped in java?

>
>> What would be the pros and cons or going either way?

>
> The cron job will run in a separate JVM and need to access the
> app server remotely, while the EJB timer will run inside the app
> server and have direct access to everything.
>
> The EJB timer is a portable mechanism while there are huge
> differences between *nix cron and Windows scheduler.


Also, cron and EJB Timer will behave differently when dealing with a
cluster. Cron is definitively not cluster aware or even safe while with
an EJB Timer chances are that your scheduling works in the cluster and
will distribute load. This depends of course on the EJB container used.

Kind regards

robert

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Equiv of a CRON job? Andrew Banks ASP .Net 8 07-30-2012 07:03 AM
Possible to generate "ejb-jar.xml" from EJB class (source)? "ejb-jar.xml" appserver independent? Raymond Schanks Java 0 08-03-2010 08:21 AM
Re: cron job or EJB timer? Arne Vajh°j Java 0 09-06-2008 08:00 PM
cron job times out Nikola Skoric Python 0 11-24-2006 06:50 PM
shell script for running as a weekly cron job NOSPAM@NOSPAM.invalid.com NZ Computing 9 12-13-2004 12:26 AM



Advertisments