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
  • 1.  Shutdown and restart web methods schedule task automatically

    Posted Mon July 26, 2010 09:49 PM

    I have been googling to find out how to shut down and start a scheduled task automatically on a daily basis. Currently I have been required to manually shut it down at night and restart it early in the morning 7 days a week since maintenace is required on other servers. 2 web methods servers are clustered. I am not familiar with web methods or any of it’s features but there has to be another option. Please let there be another option. Any guidance will be greatly appreciated.


    #Integration-Server-and-ESB
    #webMethods-Archive
    #webMethods


  • 2.  RE: Shutdown and restart web methods schedule task automatically

    Posted Mon July 26, 2010 10:40 PM

    I’m unsure if you talk about OS Administrator task of start/shutdown the whole IS on a schedule manner, or if you talk about schedule “taks” on IS.

    For the first one, if you are under Unix take a look to “man at” , you can shutdown IS sending a kill signal to JVM process or invoking shutdown service.

    For the second one you can take a look at scheduler manual.


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-Archive


  • 3.  RE: Shutdown and restart web methods schedule task automatically

    Posted Mon July 26, 2010 11:56 PM

    If the time of the daily outage is consistent, change the tasks to use a complex schedule to specify running at the desired times.

    Another approach is to schedule another task–this task will turn off and on the other tasks. You’d write a service (or 2) that would be run a specific time to turn on/off the others. Refer to the docs for the services you can use to do the suspend/resume.


    #webMethods-Archive
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Shutdown and restart web methods schedule task automatically

    Posted Tue July 27, 2010 03:28 PM

    Really appreciate the responses so far (I am seeing a glimmer of hope for sleep) and apologies for not making myself clearer. I am trying to automate the shutdown and restart of the task daily via the webMethods web interface administrator screen not in the windows console. The complex schedule sounds interesting b/c I would like to do it within the webMethods application. Right now I don’t have access to the stage webMethods box and don’t want to get familiar with this on the production box. It appears that web methods 6.5 is installed. Would this be possible with this version and is there an advantage to have simple interval tasks versus the complex repeating tasks?


    #webMethods-Archive
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Shutdown and restart web methods schedule task automatically

    Posted Tue July 27, 2010 06:51 PM

    Yes, complex tasks can be defined on 6.5.

    Simple interval tasks just indicate “run every X seconds.”

    Complex tasks define exactly when a task is to be run, and there is flexibility in doing so.


    #webMethods-Archive
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Shutdown and restart web methods schedule task automatically

    Posted Mon October 25, 2010 05:37 PM

    I had to preform a similar task to free up available jvm memory for developers. There’s two solution to this.

    1. Set up a cron job to kill the process and then restart the server. Write a script for the cronjob to call.
    2. Create a simple flow service that calls “wm.server.admin:shutdown” and pass “yes” into the “bounce” service in variable. Then setup a scheduled task to invoke you flow service at the times you wish to bounce your server.

    I’d sit by and watch the task work your first time just to make sure.


    #Integration-Server-and-ESB
    #webMethods-Archive
    #webMethods


  • 7.  RE: Shutdown and restart web methods schedule task automatically

    Posted Fri November 12, 2010 09:35 AM

    If I understand well, you wanna make teh schesuler services automated by external tools like java etc… so you can make a java program to call
    pub.scheduler:resumeTask service and then schedule this java code at any particular time


    #webMethods
    #webMethods-Archive
    #Integration-Server-and-ESB