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.  Calling an bat or an kershel shell script from webmethods

    Posted Tue December 06, 2005 01:14 PM

    Hi all,

    I was curious to know if we have any built in services in webMethods which invokes an batch application (.bat) or an shell script from webMethods.I know that we can do that by using Runtime classes in java and creating a custom service to do the needed.But i am not sure of the code for that. so could any one help me out in this.

    Thank You


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


  • 2.  RE: Calling an bat or an kershel shell script from webmethods

    Posted Tue December 06, 2005 10:51 PM

    I guess, You can write a Java service similar to the sample service “sample.commandLineExec:fireCommandExec” to execute a batch script.


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


  • 3.  RE: Calling an bat or an kershel shell script from webmethods

    Posted Tue December 06, 2005 11:17 PM

    Small piece of advice when using Runtime.exec(): make sure you handle the process’ output and error streams properly. If your process does not generate any output, you can probably get away with simply executing exec() and not having to do anything else. However, if your process does generate output, depending on the amount of output generated, your process will block if you do not handle the streams properly. Take a look at when you get a chance:
    [url=“http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html”]Welcome to JavaWorld.com

    Let me know if you need further help.

    • Percio

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


  • 4.  RE: Calling an bat or an kershel shell script from webmethods

    Posted Tue December 06, 2005 11:48 PM

    Percio,
    Great article in there. Thank you.


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


  • 5.  RE: Calling an bat or an kershel shell script from webmethods

    Posted Wed December 07, 2005 08:20 AM

    Hi All,

    Thanks alot guys, and sekay is the service built in service in webMethods “sample.commandLineExec:fireCommandExec”.Once again thamk and give a try to do run this service.
    bye


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


  • 6.  RE: Calling an bat or an kershel shell script from webmethods

    Posted Wed December 07, 2005 08:23 AM

    sorry
    i mean i will give a try to run this service and let you know if i have any doubts.
    Thank you…


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