Refreshing policy set and general bindings configurations using wsadmin scripting
You can use the wsadmin tool to refresh the policy set and general bindings configuration data. This is done by refreshing the PolicySetManager object. If you change the settings in a policy set or general bindings after it has been loaded by an application, the PolicySetManager must be refreshed before the changes are recognized by the application server. After refreshing the PolicySetManager, any applications that are using a policy set or general bindings that were changed will not pick up the changes until they are restarted.
Procedure
Example
The following example is a Jython script that refreshes the policy set
manager:
objNameString = AdminControl.completeObjectName('type=PolicySetManager,*')
import javax.management as mgmt
mbeanObj = mgmt.ObjectName(objNameString)
param=[]
sig=[]
AdminControl.invoke_jmx(mbeanObj, 'refresh', param, sig)
The following example is a Jacl script that refreshes the policy set
manager:
set psm [$AdminControl queryNames type=PolicySetManager,*]
$AdminControl invoke $psm refresh