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.  Soft shutdown TN server

    Posted Tue June 25, 2002 09:38 AM

    How can we shutdown “nicely” the TN Server? I’m using the kill command but i guest there is another way to do it!


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


  • 2.  RE: Soft shutdown TN server

    Posted Wed June 26, 2002 09:29 AM

    You can use IS administration web pages to nicely shutdown the IS. Also some times while any service is still running, if you kill the server, that service gets corrupted. So there is an option in Admin pages called “After all client sessions end…”.


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


  • 3.  RE: Soft shutdown TN server

    Posted Wed June 26, 2002 01:24 PM

    is there other way tant the GUI?
    on the unix prompt?


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


  • 4.  RE: Soft shutdown TN server

    Posted Wed June 26, 2002 11:58 PM

    we use a unix shell script that call a java class
    file that has been compiled with .java that looks something like this. You can webMethods support for complete source java code.




    Context context = new Context();
    String server = null;

                try
    {
    if (! parseParams(args, params) )
    {
    System.out.println("Failed to parse arguments");
    System.out.println(usage);
    }
    server = params.get("host") + ":" + params.get("port");
    username = (String) params.get("username");
    password = (String) params.get("password");
    if (password == null)
    {
    System.out.println("Password is null.");
    System.out.println(usage);
    System.exit(1);
    }
    context.connect(server, username, password);
    }
    catch (IndexOutOfBoundsException o)
    {
    System.out.println("Please make sure argument values are provided.");
    System.out.println(usage);
    System.exit(1);
    }
    catch (Exception e)
    {
    System.out.println("Fail to connect to " + server + " as " + username + ".");
    System.out.println(e.getMessage());
    System.exit(1);
    }
    
    try
    {
    Values v = new Values();
    v.put("option", "force");
    
    context.invoke("wm.server.admin", "shutdown", v);
    context.disconnect();
    }
    



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


  • 5.  RE: Soft shutdown TN server

    Posted Thu June 27, 2002 12:26 AM

    I’ve posted a Java service for a soft shutdown of the B2B server. See :

    http://www.openitx.com/archives/archives.asp?i=33899


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