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. Advertisements

  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. Advertisements

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,565
    PeteJ
    Jul 30, 2012
  2. Mr. T

    Timer vs. Cron Jobs

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

    cron job times out

    Nikola Skoric, Nov 24, 2006, in forum: Python
    Replies:
    0
    Views:
    433
    Nikola Skoric
    Nov 24, 2006
  4. baytes

    Cron Job Output

    baytes, Dec 2, 2009, in forum: Python
    Replies:
    1
    Views:
    465
    LoD MoD
    Dec 3, 2009
  5. Raymond Schanks
    Replies:
    0
    Views:
    907
    Raymond Schanks
    Aug 3, 2010
  6. Dev_SH
    Replies:
    0
    Views:
    470
    Dev_SH
    Jan 28, 2011
  7. Julian
    Replies:
    6
    Views:
    2,541
    Uri Guttman
    Apr 21, 2004
  8. siddhartha mulpuru

    Cron Job manipulation through Web Page

    siddhartha mulpuru, Aug 11, 2004, in forum: Perl Misc
    Replies:
    1
    Views:
    222
    Clyde Ingram
    Aug 11, 2004
Loading...