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

webMethods IS restart after checking if any services are running

  • 1.  webMethods IS restart after checking if any services are running

    Posted Tue April 01, 2014 05:15 PM

    Hi,

    Here is my requirement.

    I need to first check if any flow service is running on a particular IS(I have a flow service written for this which returns a true or false flag). Before I stop the IS using a perl script, I need to check if any of the flow services are running on the IS. What is the best approach to achieve this ?

    1. Writing a webMethods service which branches on the flag I generate(for is Service running) and stopping the IS using the fireCommandExec to execute the perl script

    2. Include a curl command in the script itself which will fetch the flag(for is Service Running) and based on the it will stop the IS


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 2.  RE: webMethods IS restart after checking if any services are running

    Posted Tue April 01, 2014 11:29 PM

    To shut down the IS, you don’t need to run script, you can invoke service wm.server.admin:shutdown in WmRoot package.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: webMethods IS restart after checking if any services are running

    Posted Wed April 02, 2014 02:23 AM

    Hi,

    To see any services (flow, java) that is currently running on IS can be found at Service Usage page under Server on IS. You have an option “Show running services on top”

    See whether you can use this functionality for your requirement.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 4.  RE: webMethods IS restart after checking if any services are running

    Posted Tue February 10, 2015 11:30 PM

    Could you please share service name used for the restart of IS server

    Thanks in Advance


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: webMethods IS restart after checking if any services are running

    Posted Wed February 11, 2015 11:34 AM

    What is your requirement here?

    Check server-shutdown.dsp and wm.server.admin:shutdown


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: webMethods IS restart after checking if any services are running

    Posted Thu February 12, 2015 12:41 AM

    Actually ,my requirement is that i want to restart a list of servers one after the other in chain by invoking service in IS.

    Note:- Once the restarted server comes UP then only go for restarting the next server.
    wm.server.admin:shutdown will shutdown the server however i want service which restarts the server.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 7.  RE: webMethods IS restart after checking if any services are running

    Posted Thu February 12, 2015 01:00 AM

    Not sure, whether build-in ‘startup’ service is available.

    But you try with UNIX script, where you need to call server.sh(./IntegrationServer/bin/) and enhance further to start all servers one by one based on your requirement.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 8.  RE: webMethods IS restart after checking if any services are running

    Posted Thu February 12, 2015 05:31 AM

    Yes that should be the option 1 and option 2 is to write a java service to restart the IS.

    Option 1 looks more feasible and flexible if you are on Unix/Linux.

    What is your OS?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 9.  RE: webMethods IS restart after checking if any services are running

    Posted Thu February 12, 2015 10:24 AM

    Do you mind elaborating a little more on why this is needed? I’m curious because this is an unusual requirement. Achieving what you want is definitely feasible but I’m thinking there will be a better solution to the issue at the heart of this discussion.

    Percio


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods