This example shows you how to clear the cache associated
with a WSRR definition, from the command line.
About this task
When mediation flows query a registry, the information returned
is stored in a cache associated with the WSRR definition (information
relating to service endpoints and mediation policies can be cached).
Before
you can clear the cache, using wsadmin, you need to have a reference
to an MBean of type ServiceRegistry. You must get a ServiceRegistry
MBean for each instance of the registry you need to clear; then you
use the MBeans to clear the cache.
Note: A ServiceRegistry MBean is
created when an WSRR instance, as defined by a WSRR definition, is
queried for the first time by an Endpoint Lookup mediation primitive
or a Policy Resolution mediation primitive.