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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

Retrieving Current Port of WM Server

  • 1.  Retrieving Current Port of WM Server

    Posted Thu November 02, 2006 05:30 PM

    Hi

    I am trying to retrieve the current port of the WM server. I am using getCurrentPort() of ServerAPI.

    In run time i am getting a value of -1 but if i run my service in debug mode the value returned is correct lets say 5555.

    I would like to know why this is happening or if there is an alternative to retrieve the current port.

    Regards

    Sreedhar


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


  • 2.  RE: Retrieving Current Port of WM Server

    Posted Mon November 06, 2006 06:02 PM

    I have raised an SR for the same, shall update the post when i receive the response, might be useful for others in future


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


  • 3.  RE: Retrieving Current Port of WM Server

    Posted Tue November 07, 2006 10:06 AM

    Hi
    You can use the following service WmAdmin/wm.administrator.user:getAllServers.
    Even WmRoot services can be used to retrieve the port.

    Thanks
    Muralidhar


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