Monday, August 08, 2011

Oracle SOA 11g WorkList session timeout change


How to Increase / Change The Worklist Application Timeout Setting. (Default: 5 minutes)

Solution
Please follow the below steps to achieve the goal set above:

1. In Weblogic console

http://:/console/

Navigate to the following location:

Home >Summary of Deployments > and expand Worklistapp --> Click On /integration/worklistapp module

2. Then in this module page navigate to the "Configuration" and "General" sub tab.
3. Please change the value of the "Session Timeout (in seconds):" to what ever value you want, but do change the value to a different one from the default value.
4. In the same page you will see a save button. Hit the save button and follow the prompts to create the plan.xml file.
Note: The prompt for a new plan.xml file will only appear if you have not changed and/or saved any of the configuration for this particular module previously.

5. See the attachment section of this note to see, the original plan.xml file that you would get when you first save. This is an example only. File: Orig_Plan.xml

6. Now you need to backup plan.xml and edit the plan.xml file in the following way using a text editor.

Section 1:

SessionDescriptor_timeoutSecs_12814763633360
1 -----> this is the time value. Remember this is in Minutes and not in seconds.

7. You need to insert few lines to the plan.xml file as shown below.
Section 2:


web-app
WEB-INF/web.xml
-------------> Line Insert starts here
SessionDescriptor_timeoutSecs_12814763633360 ---------->// Make sure this name here exactly matches with the name in the above mentioned section 1//
/web-app/session-config/session-timeout
replace
-------------> Line Insert Finishes here



8. See the attachment section of this note for file Plan_TimeChanged.xml. This is the final plan.xml after the changes. Please note, this file is for example only and I have trimmed the file for ease of reading. In your plan.xml you might see more lines and they can stay as they are.
9. Now navigate back to the Summary of deployments page of the Weblogic console.
10. Stop the Worklistapp.
11. Select Worklistapp and update the Worklistapp with the generated plan.xml by clicking "Update" button.
Gotcha: Catch point, You might get errors stating that "you might not be able to update few applications dynamically", if you get this error, all you need to do is stop the application, that is being complained about.

12. Start the Worklistapp.
13. This completes the change of the session time out.
14. Retest the scenario.
15. If you would want to double check if your session time out settings have taken effect, Navigate to

Home >Summary of Deployments > and expand Worklistapp --> Click On /integration/worklistapp module --> Then in this Module page navigate to the "Monitoring" and "Sessions" sub tab you will notice that the session time out has changed to how much ever you might have stated in the above steps.

Oracle SOA 11g WorkList Branding Icon customization


How to change - the Branding image icon in the BPM worklist applications.

Issue:
Changing the global branding icon in the administrative tab of worklist is only changing the branding icon in the login page. After successful login, all other pages are showing Oracle Icon.
Solution :
Some of the pages are using adf panel template with style sheet configured to a oracle icon image as spacer image. Following are the steps to customize this space image.
1. On Soa suite server, backup the following file <>/user_projects/domains/<>/servers/soa_server1/tmp/_WL_user/worklistapp/960vxc/war/templates/panelPageTemplate.jspx
2. Edit Followng section in above file as :
a) Search for the word “AFBrandingBarLogo” in the above file, and comment out the line as following :

Add the following line after the above commented line, include the custom image in the following line

Note: In above h: is the namespace, add following namespace declaration at top of the file
xmlns:h="http://java.sun.com/jsf/html"