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.  find whether the given service name is flow service or java service

    Posted Mon June 28, 2010 11:27 AM

    Hi All,

    Is there anyway to find out the given service name is a flow service or java service in my java code.

    help me out :confused:


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


  • 2.  RE: find whether the given service name is flow service or java service

    Posted Mon June 28, 2010 02:42 PM

    You can try “WmRoot/wm.server.services:serviceInfo” and then the value “type>svc_type” will be “java”, “flow”, etc…

    It’s available in 6.5 but I don’t know it is in the latest versions.


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


  • 3.  RE: find whether the given service name is flow service or java service

    Posted Mon June 28, 2010 03:48 PM

    I’d be interested in knowing why this is useful in an integration scenario. Whether a service is FLOW or Java shouldn’t matter.


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


  • 4.  RE: find whether the given service name is flow service or java service

    Posted Tue June 29, 2010 06:04 AM

    i’m writing a java code to find dependencies and references for the given service name.

    for that i need to do check whether the given service is java or flow. thanks for all your replies. :slight_smile:


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


  • 5.  RE: find whether the given service name is flow service or java service

    Posted Tue June 29, 2010 06:20 AM

    i tried WmRoot\wm.server.services:serviceinfo. the output is fine type>svc_type but the ‘type’ is of object. how do i get the svc_type string out???


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


  • 6.  RE: find whether the given service name is flow service or java service

    Posted Tue June 29, 2010 03:38 PM

    You may find the code within WmDoc, a utility/sample package from wM, to be helpful.


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


  • 7.  RE: find whether the given service name is flow service or java service

    Posted Wed June 30, 2010 08:11 AM

    Hi,

    You can try “WmRoot/wm.server.services:serviceInfo”. In the output there will be two variables “class” and “method”. these two fields will be present in output only for java services. So you can do a existence check for class or method variable to decide it is a java service or a flow service.

    Thanks:)


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