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.  Name of Calling Service

    Posted Mon October 04, 2010 04:36 PM

    Hi,
    If Service A calls Service B, Is there a way I can get the name of Service A at runtime from Service B.

    Basically I want to capture which services have called Service B which is a logger service, so that I can log the name of the calling service.

    Thanks in advance,
    -Sid


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


  • 2.  RE: Name of Calling Service

    Posted Mon October 04, 2010 05:52 PM

    You have an example in PSUtilities → ps.util.system:getCallingServiceName, it’s a java service.

    Basically, you can try “Service.getCallingService()”.


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


  • 3.  RE: Name of Calling Service

    Posted Mon October 04, 2010 05:53 PM

    Hi, just put a flag in the service B input, this way you can set a fixed value to each service that call service B, so service B will know who are invoking him.
    Regards.


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


  • 4.  RE: Name of Calling Service

    Posted Thu October 07, 2010 10:44 AM

    Arnaud’s solution will be sufficient to capture the name of the calling service within a Java service, however not sure how the same can be implemented in a flow service.


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


  • 5.  RE: Name of Calling Service

    Posted Wed October 20, 2010 04:35 AM