Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to enable or disable Java 2 security:
set security [$AdminConfig list Security]
security = AdminConfig.list('Security') print security
Example output:
(cells/mycell|security.xml#Security_1)
$AdminConfig modify $security {{enforceJava2Security true}}
AdminConfig.modify(security, [['enforceJava2Security', 'true']])
$AdminConfig modify $security {{enforceJava2Security false}}
AdminConfig.modify(security, [['enforceJava2Security', 'false']])
Related concepts
AdminConfig object for scripted administration
Related reference
Commands for the AdminConfig object