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

Clearing the cache of remote server

  • 1.  Clearing the cache of remote server

    Posted Fri November 25, 2016 11:45 AM

    I’m writing a flow service to clear Cache of other Integration servers. Generally when we click on Reset server cache it calls the URL http://servername:port/WmRoot/stats-services.dsp?action=resetcache. I need to call this URL, tried using pub.client.http but doesn’t seems to be working. Any ideas hoe to make this work or any other work around and also please let me know the disadvantages of clearing the cache in this way


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General


  • 2.  RE: Clearing the cache of remote server

    Posted Fri November 25, 2016 01:11 PM

    Hi Vinod,

    try to find out what is called exactly when you click on the link.

    Then locate this service in WmRoot-package and try to call it with pub.client:remoteInvoke

    See Built-In-Services-Guide for details.

    Can you elaborate on the use case you are trying achieve?

    Regards,
    Holger


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Clearing the cache of remote server

    Posted Sat November 26, 2016 03:27 AM

    Make use of “pub.client:remoteInvoke” to clear the service cache remotely on other IS’s. Make sure you setup of the remote server alias of all IS’s on your local IS (from where are invoking pub.client:remoteInvoke)

    Can you provide your wM version, I remember that there were few additions to the cache services in WmPublic package.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 4.  RE: Clearing the cache of remote server

    Posted Sat November 26, 2016 01:15 PM

    Thanks Holder & Mahesh for responding.

    Im using versions 8.2, 9.6 & 9.8. I’m aware of the remote invoke service which you guys said. But the problem is that I don’t know the exact service to call to clear the cache.

    Holger I was not able to find the service in WmRoot for this. The main reason is I’m not supposed to enable WmRoot package in my project.
    Mahesh there is a pub service for this pub.cache.admin:clearCache but not sure what to give the inputs for this cacheManagerName & cacheName


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 5.  RE: Clearing the cache of remote server

    Posted Sat November 26, 2016 02:04 PM

    The service name is “wm.server.cache:resetCache” which is present in WmRoot. Use this service at your own risk.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Clearing the cache of remote server

    Posted Sat November 26, 2016 02:07 PM

    If you want to make use of the sevice pub.cache.admin:clearCache then pass the inputs as below: Make sure you test this on dev server before implementing this soln.

    cacheManagerName=“SoftwareAG.IS.Services”
    cacheName=“ServiceResults”


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods


  • 7.  RE: Clearing the cache of remote server

    Posted Sun November 27, 2016 01:50 AM

    Thanks a lot Mahesh, will definitely try both and will let you know the outcome.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 8.  RE: Clearing the cache of remote server

    Posted Thu December 08, 2016 12:38 PM


  • 9.  RE: Clearing the cache of remote server

    Posted Mon December 19, 2016 03:36 AM

    HI Mahesh,

    Is there a way to find out whether the service wm.server.cache:resetCache ran successfully or a way to capture the error if anything occurs while the service is running or it fails to run.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 10.  RE: Clearing the cache of remote server

    Posted Tue September 11, 2018 09:35 AM

    Hi Mahesh,
    unfortunately, I get the error message “Cannot clear the contents of a system cache.” when I try it with following input:
    cacheManagerName=“SoftwareAG.IS.Services”
    cacheName=“NameOfMyServiceOutput

    Any idea?

    Best regards,
    Marcus


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 11.  RE: Clearing the cache of remote server

    Posted Fri September 14, 2018 08:41 AM

    The above is an example to use the service however the service will not work for the system cache and it is only for the user-defined cache. Refer WmRoot package you will find one to clear the system defined cache else let me know.


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 12.  RE: Clearing the cache of remote server

    Posted Wed June 12, 2019 10:35 AM

    As pub.cache.admin:clearCache cannot clear system caches, I have looked for wm.server.cache:resetCache in the WmRoot package, but cannot figure its input signature. When testing this service on IS’ Admin UI, it does ask for any inputs. This could either mean it resets all service caches or the Admin UI doesn’t recognize the input signature. Can anybody help, please?


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods


  • 13.  RE: Clearing the cache of remote server

    Posted Wed June 12, 2019 11:32 AM

    Hi,

    wm.server.cache:resetCache has an Input as serviceName.
    There is another service wm.server.cache.adminui:resetCache, which does not have any inputs.

    As written above, both services should be used with caution as they are internal services usually not meant for manual invocation.

    Regards,
    Holger


    #webMethods-General
    #Integration-Server-and-ESB
    #webMethods