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.  Can we call a flow service in a java service

    Posted Wed November 16, 2005 11:49 AM

    Hi gurus

    Can we call a flow service in a java service ? I am new to webMethods can any one help me in this regard


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


  • 2.  RE: Can we call a flow service in a java service

    Posted Wed November 16, 2005 02:22 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.

    HTH.


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


  • 3.  RE: Can we call a flow service in a java service

    Posted Wed November 16, 2005 04:29 PM

    Agree with Rob, here. The “normal” pattern is for Flow services to invoke Java services when a specific task can be accomplished more elegantly in Java.

    While there are times when you need larger Java services, a very big portion of most integration projects can be completed almost entirely using Flow with occasional calls to a custom library of very small, fine-grained java services specific to your needs.

    There are times when you need to invoke a Flow using a Java service, but this should be the exception rather than the rule and should not be viewed as a way to keep from learning/leveraging the strengths of Flow. Doing this is working against the tool not with the tool and will lead to higher maintenance costs and less ROI from your company’s WM investment.

    One case in which I’ve used a java service to invoke a flow is the service I always have in my toolbox that will invoke either a Flow or java service on its own thread.

    HTH,

    Mark


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


  • 4.  RE: Can we call a flow service in a java service

    Posted Wed August 06, 2008 08:53 PM

    You can invoke flow Service or even java service within a java service using Service.doInvoke()

    Best way is generate code using webMethods’s generate code function.


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


  • 5.  RE: Can we call a flow service in a java service

    Posted Fri February 23, 2018 09:55 AM

    where can I get webMethods realtime example for practice purpose please help


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


  • 6.  RE: Can we call a flow service in a java service

    Posted Fri February 23, 2018 10:05 AM

    For better performance sometimes Java services are better than flow services.


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


  • 7.  RE: Can we call a flow service in a java service

    Posted Tue March 06, 2018 05:14 AM

    First I would like to underline the previous statements to consider carefully whether and when to use Java services and calls back to flow.
    Having said that: If you need interaction between Java and flow you should consider App Platform in the newer versions of webMethods. This allows a lot between integration between flow and Java, as it offers both sides a native experience, you can generate Java classes with getter and setters from flow and flow for Java classes without the need to use the generated code which imho is a bit cumbersome. With App platform you get a more native experience for both sides (Java and flow developers).


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