The persistPolicy.jacl script

This script stores the authorization component policy configuration so that the policy is available to all application restarts.

Warning:

If you are administering the WSRR authorization configuration in a clustered environment and you are making multiple invocations of the provided jacl scripts, always apply each operation to the same server, using the -cell, -node and -server parameters, before completing the configuration change using persistPolicy.jacl or persistRoleMappings.jacl. This ensures the changes are made and propagated to all cluster nodes correctly.

Usage

wsadmin -f persistPolicy.jacl
     [ -wsrrhelp ]
     [ -wsrrhome <WSRR install directory> ]
     [ -cluster <cluster name>] |
     [
       -cell <cell name>
       -node <node name>
       -server <server name>
     ]

(entered as a single line)

Parameters

Parameter Description
-wsrrhelp Displays the script usage information.
-wsrrhome The <WSRR_INSTALL_ROOT> directory. This parameter is optional and, if omitted, defaults to the current directory. You must provide a value for this parameter if you are not running the script from the <WAS_INSTALL_ROOT>\WSRR\admin\scripts_cell directory.
-cluster In a cluster configuration, the name of the cluster on which WSRR is deployed.
-cell In a stand-alone or federated node configuration, the name of the cell in which WSRR is deployed.
-node In a stand-alone or federated node configuration, the name of the node on which WSRR is deployed.
-server In a stand-alone or federated node configuration, the name of the server on which WSRR is deployed.
Notes:
  • If you do not specify -wsrrhelp, then the parameters you supply must include either -cluster or -cell, -node and -server.
  • It is helpful to invoke this operation together with persistRoleMappings.jacl, to ensure that all access control policy changes are available to all application restarts.

Examples

These commands are run from the <WAS_INSTALL_ROOT>\WSRR\admin\scripts_cell directory.
<WAS_INSTALL_ROOT>\bin\wsadmin 
-f persistPolicy.jacl -cluster cluster1
<WAS_INSTALL_ROOT>\bin\wsadmin 
-f persistPolicy.jacl -cell cell1 -node node1 -server server1