Monday, November 21, 2016

Step by Step OAF Setup for development environment



In our first step we will download correct version of Jdeveloper with OA Extension. To get the correct version, we will first establish the version of E-Business Suite (EBS) we are on  then download JDeveloper from Oracle Support and install it.

  1. Log on to EBS and click on the About this Page link.
  2. Click on the Technology Components tab
  3. Version will display to you
  4. We will download to support support.oracle.com
  5. Find the note How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x [ID 416708.1]. Type 416708.1 in the search box, and click the search icon.
  6. Click on the version we require to download
  7. Click on the Download button to download the correct version to your PC
  8. Unzip the file into a local directory called C:\Jdev

Note :


You will notice that JDeveloper has created the following three directories under the C:\Jdev directory (or the directory you chose to unzip it in): jdevhome—All pages and code we develop. Also, contains the .dbc file to connect to the database instances. jdevbin—All Jars, executables for Jdev and FND classes. jdevdoc—Contains all of the Oracle OAF tutorials, the Developer Guide (HTML), and an explanation of all the classes, methods, and parameters.


Setup Environment Variable


  1.  Right-click on My Computer or Computer, and select Properties from the menu.
  2.  Click on Advanced System Settings to open the System Properties window.
  3.  Click on the Advanced tab.
  4.  Click on the Environment Variables button.
  5.  Select the New button for user variables.
  6.  In the Variable name field, enter JDEV_USER_HOME.
  7.  In the Variable value field, enter the directory of the jdevhome\jdev directory, for example, C:\oaf\jdevhome\jdev as shown in the following screenshot
  8. Press Button OK.

Transferring DBC from Application Server

In order to connect Jdeveloper to database we need DBC file, now we will transfer DBC file to our local directory for creating database connections with JDeveloper.

  1. Open WinSCP and connect to the application server.
  2. FTP the .dbc file to your local PC from the $INST_TOP/appl/fnd/12.0.0.0/secure directory on the application server to the jdevhome\jdev\dbc_files\secure directory as shown in the following screenshot


Creating Shortcut to Desktop.
  1. Navigate to the directory, C:\oaf\jdevbin\jdev\bin.
  2. Right-click on the jdevw.exe and select Send To | Desktop (create shortcut).
  3. Rename the shortcut on the desktop if desired, for example, Jdev R12.  


Creating database connections in JDeveloper

To add a database connection, perform the following steps:

  1. Start JDeveloper. 
  2. Click on the Connections tab in Applications Navigator. 
  3. Right-click on the Database node, and select New Database Connection.

The new database connection wizard will now be displayed.
4. Click on Next on the welcome page  and check Skip this Page Next Time if
desired.
5. In the Connection Name field, type VISR12 (this is just a name for the connection
and can be anything relevant), and click on Next.

6. When prompted, enter apps in the username field and the <apps password> in the
password field, that is, apps/apps and click on Next.
7. Enter the following connection details:

8. Click on the Next button.
9. Click the Test Connection button and then Finish as shown in the following
screenshot:
 



Setting up OC4J and project properties


  1. Open JDeveloper. 
  2. Check the OC4J Settings in Tools | Embedded OC4J Preferences Global Startup. 
  3. Check if the Host Name or IP Address Used to Refer to Embedded OC4J is set to Default Local IP Address, as shown in the following screenshot: 
  4. Press Button OK


Setting up OAF runtime connection


  1.  Open JDeveloper.
  2. Navigate Tools --> Project Properties --> Oracle Applications --> Runtime Connection 
  3. Set the following fields:

                 DBC File Name: C:\Jdev\jdevhome\jdev\dbc_files\secure\VISR12.dbc
                 User Name: sysadmin
                 Password: sysadmin
                 Application Short Name: ICX
                 Responsibility Key: FWK_TBX_TUTORIAL

        4. Press Button OK