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
Expand all | Collapse all

result of web service in cache?

  • 1.  result of web service in cache?

    Posted Thu September 20, 2007 12:57 PM

    When I invoke a web service in a portel, the result is in cache. When the result of the web service change, I can’t show it in my portlet.
    How can I change that? I always want to invoke the web service.


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


  • 2.  RE: result of web service in cache?

    Posted Thu September 20, 2007 06:10 PM

    If you are staying on the same page - yes indeed results are getting cached in the managed beans. You have to explicitly call web service client refresh() method to get updated results.

    If you are using autoRefresh=true property of the webService client and would like to invoke every time you refresh a page, then you may override beforeRenderResponse method of your page bean and refresh web service client there:

    @Override
    protected void beforeRenderResponse() {
    super.beforeRenderResponse();
    get<yourwebserviceclient>().refresh();
    }
    

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