webMethods

webMethods

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.  File Polling Port Start/Stop API

    Posted Fri June 18, 2004 05:42 AM

    Hi,

    Does anyone knows if there’s any API i can use to start and stop the file polling port running on IS 6.01?

    thanks in advance

    Kenny


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


  • 2.  RE: File Polling Port Start/Stop API

    Posted Tue June 22, 2004 08:52 AM

    Hi Kenny,

    It’s not a published API (as far as I know), but you can reverse-engineer it from the security-ports.dsp page and accompanying Javascript functions.

    Basically, the two services you need to use are:

    • wm.server.ports:listListeners - Lists all configured listener ports, and,
    • wm.server.net.listeners:ListenerAdmin - Used to administer (incl. enable/disable) a listener

    You can’t browse to these services, so you need to create dummy invoke steps (e.g. pub.flow:debugLog) and then cut/paste the fully-qualified service names into the Properties page (i.e. replace “pub.flow:debugLog” with “wm.server.ports:listListeners”).

    The first service returns all the configured ports and listeners. You need the “key” and “pkg” values returned from this service to plug in to the second service for the listener you want to enable/disable.

    The “ListenerAdmin” service takes three parameters, which you will need to create in the input pipeline:

    • operation - set this to “enable” or “disable” to start/stop the listener
    • listenerKey - map the “key” value from the first step for the listener you want
    • pkg - map the “pkg” value from the first step for the listener you want

    Hope this helps.

    Cheers,

    Steve Ovens


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


  • 3.  RE: File Polling Port Start/Stop API

    Posted Mon July 12, 2004 05:40 AM


  • 4.  RE: File Polling Port Start/Stop API

    Posted Wed September 29, 2004 04:04 PM

    I just used this procedure and found that the Wm.server.net:listenerDisable and Wm.server.net:listenerEnable where easier to use then the wm.server.net.listeners:ListenerAdmin service.

    They take 2 parameters port and pkg from listeners Map key to port and pkg to pkg. You will have to create the String parameters on the call. A String named message is returned with a success or failed message this helps a lot in debugging.


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