webMethods

webMethods

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.  Wait

    Posted Mon October 21, 2002 09:29 AM

    Within a flow service that invokes multiple services, I need to “wait” for a period of time between the 1st and 2nd steps. Would appreciate any suggestions.

    Thanks.


    #Adapters-and-E-Standards
    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Wait

    Posted Tue October 22, 2002 06:07 AM

    We have a little java utility that takes a time in milleseconds that looks something like this:
    // pipeline
    IDataHashCursor pipelineCursor = pipeline.getHashCursor();
    pipelineCursor.first( “sleepTimeMillis” );
    long sleepTimeMillis = Long.parseLong ((String) pipelineCursor.getValue());
    pipelineCursor.destroy();

    try
    {
    Thread.currentThread ().sleep (sleepTimeMillis);
    }
    catch (InterruptedException ie)
    {}
    Hope this helps.


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods


  • 3.  RE: Wait

    Posted Wed October 23, 2002 02:00 PM