Re: cron job or EJB timer?

Discussion in 'Java' started by Arne Vajhøj, Sep 7, 2008.

  1. Arne Vajhøj

    Arne Vajhøj Guest

    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
     
    Arne Vajhøj, Sep 7, 2008
    #1
    1. Advertising

  2. 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
     
    Robert Klemme, Sep 13, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andrew Banks

    Equiv of a CRON job?

    Andrew Banks, Apr 8, 2004, in forum: ASP .Net
    Replies:
    8
    Views:
    15,238
    PeteJ
    Jul 30, 2012
  2. Mr. T

    Timer vs. Cron Jobs

    Mr. T, Jun 9, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    734
    Hans Kesting
    Jun 9, 2004
  3. Nikola Skoric

    cron job times out

    Nikola Skoric, Nov 24, 2006, in forum: Python
    Replies:
    0
    Views:
    310
    Nikola Skoric
    Nov 24, 2006
  4. Arne Vajhøj

    Re: cron job or EJB timer?

    Arne Vajhøj, Sep 6, 2008, in forum: Java
    Replies:
    0
    Views:
    458
    Arne Vajhøj
    Sep 6, 2008
  5. Raymond Schanks
    Replies:
    0
    Views:
    663
    Raymond Schanks
    Aug 3, 2010
Loading...

Share This Page