Wednesday, 24 October 2012

Server bouncing for OAF Customizations


I am working in OAF Extensions. When I started working in Extensions, I came to know that the Apache server needs to be bounced to view the customization changes. I done a customization and bounced the apache server. Nothing worked out. After that I came to know that, In R12 Oracle HTTP and OC4J container need to be get bounced to view the changes of customization. Find the detail for more information.

Bouncing OC4J server, for OAF to pick latest class and xml files.
In R12, there are two scripts which need to run to bounce the HTTP server and make OC4J container pick latest class files instead of one as in 11i, we only need to run adapcctl.sh shell script to bounce Apache Jserv.

Since in R12 Jserv is replaces by OC4J container, we need to run two scripts:
1)Script which is responsible for bouncing Oracle HTTP Server (powered by Apache).(adapcctl.sh)
2)Script which responsible for bouncing OC4J container (adoacorectl.sh)

So basically, here is the sequence of steps you need to do :
1)adapcctl.sh stop
2)adoacorectl.sh stop
3)adapcctl.sh start
4)adoacorectl.sh start
All these scripts are in $ADMIN_SCRIPTS_HOME

List,Print,Delete customized oaf components.


Listing the customization:

While extending some component in OAF sometimes the change won’t be visible in the frontend. We can check the list of customizations done for a particular page in the back end. This  can be done by the following command.
EXECUTE jdr_utils.listcustomizations('/oracle/apps/per/selfservice/location/webui/ChangeLocationPG');  

Don’t forget to set the server output on.

set serveroutput on
Printing the customization

The above command will list the customizations related to the page. This can be printed and viewed whether the new extended component attached correctly or not. This can be done with the command
EXECUTE jdr_utils.printdocument (p_document=>'/oracle/apps/per/selfservice/location/webui/customizations/responsibility/66710/ChangeLocationPG');

The file path is the path from the list which is displayed by the jdr_utils.listcustomizations command.  The file will display the old and the new component name.

Sample File:

<?xml version='1.0' encoding='UTF-8'?>
<customization xmlns="http://xmlns.oracle.com/jrad" version="9.0.6.0.0_45"
xml:lang="en-US"
customizes="/oracle/apps/per/selfservice/location/webui/ChangeLocationPG"
developerMode="true">
<modifications>
      <modify element="HrNestedRegion3"
controllerClass="oracle.apps.per.selfservice.location.webui.L3ChangeLocationCO"/>
   </modifications>
</customization>

Delete Customizations

                jdr_utils.deletedocument command is used to delete a customization. Below is the command to delete a customization.

EXECUTE jdr_utils.deletedocument('/oracle/apps/per/selfservice/location/webui/customizations/responsibility/66710/ChangeLocationPG');
Commit the change after deleting else the same customization will remain.

Commit;

Adding a tip to the page using personalization in OAF.


1)Click personalize page link in the bottom of the page.
2)Click CreateItem icon for the region you want to create the tip

3)Set Values and  click apply

5)It appears as a tip in the place we wanted.