Example: Enabling and disabling Java 2 security using wsadmin
An example of enabling and disabling Java 2 security follows:
- Identify the security configuration object and assign it to the security variable:
set security [$AdminConfig list Security]An example of this output follows:
(cells/mycell:security.xml#Security_1)- Modify the enforceJava2Security attribute.
To enable Java 2 security:
$AdminConfig modify $security {{enforceJava2Security true}}To disable Java 2 security:
$AdminConfig modify $security {{enforceJava2Security false}}- Save the changes with the following command:
$AdminConfig save