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.  Direct call of Flow class from a Java Service

    Posted Wed March 12, 2003 07:12 PM

    What Java code (both import and calling reference) can be
    used to directly invoke a flow class from a Java Service?


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


  • 2.  RE: Direct call of Flow class from a Java Service

    Posted Wed March 12, 2003 07:12 PM

    In Developer, select Help | Java API Reference from the
    menu. Review the Service class for information about
    invoking IS services from Java code.


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


  • 3.  RE: Direct call of Flow class from a Java Service

    Posted Wed March 12, 2003 07:12 PM

    Look up Service in the Java API, and under method summary,
    examine “doInvoke.”

    Ray


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


  • 4.  RE: Direct call of Flow class from a Java Service

    Posted Wed March 12, 2003 07:12 PM

    Tim,

    In addition to the docs that Rob and Ray referred you to,
    you can download a simple example from my log4j logging
    example in the shareware section at
    [url=“wmusers.com”]wmusers.com.

    I used the doInvoke to echo the log messages written to
    log4j to the wM IS log by invoking pub.debugLog.

    Mark


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


  • 5.  RE: Direct call of Flow class from a Java Service

    Posted Wed August 06, 2008 09:27 PM

    Yes. The easiest way to do this for Integration Server:

    1. In Developer, select the service you want to call.
    2. Select Tools | Generate Code… from the menu.
    3. Select “For calling this service from another service” and click Next.
    4. Select the options desired and click Next.

    The code will be placed on the clipboard. You can paste it into your Java service.

    You mention that you’re new to Integration Server, so I’d offer that you may want to be wary of doing too much work within Java services. People new to IS tend to want to write Java services when they don’t have to. Of course there are times when Java must be used but for most integration tasks, it doesn’t.


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