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.  Slow page

    Posted 10/04/11 07:40 AM

    Hi,

    In my web app i call several services, so i can display a lot of data in the page. However, the slowest service takes the max of 3 seconds to run, and the page takes a lot more time to load. Seems like it does the calls 1 by 1, showing the results when all are called. This is hapening when it opens the page at start, the services have auto-refresh as true.
    I want to know if theres any option that forces the services to run async from 1st load, because when i use async command interval it all seems to work fine.
    Shouldn’t i use auto refresh?

    Thanks


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: Slow page

    Posted 10/04/11 04:31 PM

    You could consider using an alternate approach. You could keep auto-refresh to false and then have a script that fires after the DOM has been loaded. That script would invoke refresh on each of the webservices. You can learn more about invoking multiple web-services here: http://tech.forums.softwareag.com/techjforum/posts/list/24591.page;jsessionid=50D8095B3275D09506C924046DB45A97

    As far as listening to the Dom-loaded event you can use:

    
    Event.waitUntilLoaded(function() {
    CAF.model("#{caf:cid('asynchiddencommand')}").raise();
    });
    

    #webMethods
    #webMethods-BPMS
    #MWS-CAF-Task-Engine


  • 3.  RE: Slow page

    Posted 10/07/11 08:32 AM

    The problem was a service that i was calling that was atking too long… over 5 seconds and then it gave errors to the page because the that long duration.
    Having a web app calling several services is better to use a single async command interval to refresh all at same time or have a async command interval for each service ?

    Thanks


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 4.  RE: Slow page

    Posted 10/10/11 02:40 PM

    Well, you probably want to display some data to the user as soon as possible. So if you call those services one at a time, you’ll probably get some data to render quickly. I’d also recommend investigating what can be done to get that Web Service to not take so long.

    Regards,
    –mark


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS