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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  Wait Time in a task

    Posted 04/21/03 08:54 PM

    I need to create an Integration that will attempt a task if its times out I need to wait a time and try it again. The Task is on the Enterprise Server but I want the wait to be in the B2B side. Does any one have code available?


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


  • 2.  RE: Wait Time in a task

    Posted 04/21/03 09:53 PM

    I have a script that waits an input number of seconds. Here is the code:

    IDataCursor pipelineCursor = pipeline.getCursor();
    long seconds = (Long.valueOf(IDataUtil.getString( pipelineCursor, “seconds” ))).longValue();
    pipelineCursor.destroy();
    Thread runner = Thread.currentThread();

    try
    {
    runner.sleep(seconds * 1000,0);
    }
    catch (Exception e)
    {
    System.out.println("Error in examples201.threads.utils:sleepSvc: " + e.toString());
    }

    Hope this helps you!!


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


  • 3.  RE: Wait Time in a task

    Posted 04/21/03 10:19 PM

    Take a look at the guaranteed delivery facilities of Integration Server (Chapter 18).

    “Guaranteed delivery is a facility of webMethods Integration Server that ensures guaranteed, one-time execution of services. It protects transactional requests from transient failures that might occur on the network, in the client, or on the server.”

    Even though it is named “Guaranteed delivery” it is really “Retry service execution for a time period”. You can perform any activity desired within the service, not just “delivery” activity.


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


  • 4.  RE: Wait Time in a task

    Posted 04/22/03 06:44 PM

    use repeat step and set it until it successes. and put a condition inside if certain condition is true, exit.


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