Friday, December 12, 2014

Developing Managed Beans: JDeveloper Project Template

Tested On:  JDeveloper 11.1.1.7.0, Oracle Identity Manager 11.1.2.2.0
Description: Shows how to setup a JDeveloper project template for managed bean development.
Referenceshttp://docs.oracle.com/cd/E40329_01/dev.1112/e27150/uicust.htm#OMDEV4804

Setup JDeveloper Application
1. Create a new JDeveloper application.
    a. Select File -> New.
     


   b. Select Generic Application, and click OK.
   

   c. Provide the Application Name, and then click Finish.
   

   d. Right click on the sample project, and then select Delete Project.
   
   


Setup ViewController Project
1. Create a ViewController project within the newly created application.
   a. Right click on the Projects pane, and select New Project.


   b. Select ADF ViewController Project and click OK.


   c. Provide the project name, and then click Next.


   d. Enter the default package name as oracle.iam.ui.custom and then click Finish.



2. Add Oracle Identity Manager libraries to the ViewController project classpath.
   a. Right click on project, and select Project Properties.


   b. On the left pane, select Libraries and Classpath. Click Add Library.




  c. Click Load Dir, provide path as $MW_HOME/Oracle_IDM1/server/jdev.lib, and then click Select.


   d.  Add the following libraries. Then click OK.
        - ADF Model Runtime
        - OIM View Shared Library
        - OIM Model Shared Library
        - OIM Client Library



   e.  Click OK.




3. Define the deployment profile for the newly created ViewController project.
   a. Right click on the project, and select Project Properties.


   b. On the left pane, select Deployment. Remove existing deployment profiles. Then click New.


   c. Select ADF Library Jar File as the Archive Type, specify the Name, and click OK.


   d. Click OK.
 

   e. Click OK.
 

Setup the Model Project
1. Create a new Model project within the same application as the ViewController project.
   a. Right click on the Projects pane and then click New.



   b. Select ADF Model Project and then click OK.



   c. Specify project name and then click Next.


   d. Enter Default Package name as oracle.iam.ui.custom, and then click Finish.


2. Add Oracle Identity Manager libraries to the project classpath. Follow step 3 in Setup ViewController Project section only adding the following libraries:
OIM Model Shared Library
OIM Client Library

3. Define the deployment profile for the newly created model project. Follow step 4 in Setup ViewController Project section.


1 comment: