How to set the Session Timeout for Identity and Sysadmin Console in OIM 12c
PART – 1 Prepare the xml files for the Session timeout changes for the respective deployments.
identityPlan.xml
<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
<application-name>oracle.iam.console.identity.self-service.ear#V2.0</application-name>
<variable-definition>
<variable>
<name>NewTimeOut</name>
<value>60</value>
</variable>
</variable-definition>
<module-override>
<module-name>oracle.iam.console.identity.self-service.war</module-name>
<module-type>war</module-type>
<module-descriptor external="false">
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>NewTimeOut</name>
<xpath>/web-app/session-config/session-timeout</xpath>
</variable-assignment>
</module-descriptor>
</module-override>
</deployment-plan>
sysadminPlan.xml
<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
<application-name>oracle.iam.console.identity.sysadmin.ear#V2.0</application-name>
<variable-definition>
<variable>
<name>NewTimeOut</name>
<value>60</value>
</variable>
</variable-definition>
<module-override>
<module-name>oracle.iam.console.identity.sysadmin.war</module-name>
<module-type>war</module-type>
<module-descriptor external="false">
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>NewTimeOut</name>
<xpath>/web-app/session-config/session-timeout</xpath>
</variable-assignment>
</module-descriptor>
</module-override>
</deployment-plan>
oimPlan.xml
<?xml version='1.0' encoding='UTF-8'?>
<deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd">
<application-name>oim</application-name>
<variable-definition>
<variable>
<name>NewTimeOut</name>
<value>60</value>
</variable>
</variable-definition>
<module-override>
<module-name>iam-consoles-faces.war</module-name>
<module-type>war</module-type>
<module-descriptor external="false">
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>NewTimeOut</name>
<xpath>/web-app/session-config/session-timeout</xpath>
</variable-assignment>
</module-descriptor>
</module-override>
<module-override>
<module-name>FacadeWebApp.war</module-name>
<module-type>war</module-type>
<module-descriptor external="false">
<root-element>web-app</root-element>
<uri>WEB-INF/web.xml</uri>
<variable-assignment>
<name>NewTimeOut</name>
<xpath>/web-app/session-config/session-timeout</xpath>
</variable-assignment>
</module-descriptor>
</module-override>
</deployment-plan>
Part – 2 Deploy the
ear files have changes been made in web.xml
2. Select Deployments under Domain Structure
3. Select oracle.iam.console.identity.self-service.ear(V2.0) and Update
4. Click on Change Path on Deployment Plan Path
5. Select the file location IdentityPlan.xml
6. Select the Update this application in place with new deployment plan changes option.
Note:
You can ignore the following errors while updating the plan:
'weblogic.management.DeploymentException: The application oracle.iam.console.identity.self-service.ear#V2.0 cannot have the resource WEB-INF/weblogic.xml updated dynamically. Either:
7. Click Finish to complete the deployment plan configuration
8. Activate changes if required
9. Changes are activated then restart the servers after doing all the changes.
11. Select and Update
12. Click on Change Path on Deployment Plan Path
13. Select SysadminPlan.xml from persistent volume location.
14. Select the Update this application in place with new deployment plan changes option.
15. Click Finish to complete the deployment plan configuration
16. Activate Changes
17. Changes are made, restart the servers.
19. Select and Update oim
20. Click on Change Path on Deployment Plan Path
21. Select oimPlan.xml from persistent volume location.
22. Select the Update this application in place with new deployment plan changes option.
23. Click Finish to complete the deployment plan configuration
24. Activate Changes
25. Ignore the errors while activation of the deployment.
26. Changes are made, restart the servers.