IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to configure Scheduler to run at last day of a month and

  • 1.  How to configure Scheduler to run at last day of a month and

    Posted Mon January 06, 2003 05:58 PM

    I have to configure a scheduler to run on last day of every month at 11.59pm. I know how to configure on a particular date of a month. Here the problem it the day varies Jan has 31 days, feb has 28 day…

    Any help will be greatly appreciated

    Thanks
    Jay


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: How to configure Scheduler to run at last day of a month and

    Posted Wed January 08, 2003 03:47 AM

    I suggest you need three tasks:

    a: 31 Jan, Mar, May, Jul, Aug, Oct, Dec
    b: 30 Apr, Jun, Sep, Nov
    c: 28 Feb (29 Feb in a leap year)

    Simple but effective.
    Best regards.


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 3.  RE: How to configure Scheduler to run at last day of a month and

    Posted Thu January 09, 2003 10:25 AM

    More complicated would be to run the service every day but check another Java service to see if it is the last day. Something like this might help . . .

    java.util.GregorianCalendar gc =
    new java.util.GregorianCalendar();
    if (gc.get(Calendar.DAY_OF_MONTH) ==
    gc.getActualMaximum(Calendar.DAY_OF_MONTH)) {
    // do something
    } else {
    // wait till later
    }


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods