JDeveloper Setup for OA Framework

Download JDeveloper

参考下边Note来下载JDev,不同版本的EBS需要下载不同版本的JDev
Note 416708.1 - OA Framework - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x

ATG Release 12 Version JDeveloper10g Patch
12.0.6 (patch 6728000 or patch 7237006) Patch 7523554 10G Jdeveloper With OA Extension ARU for R12 RUP6
12.1.2 (patch 7303033 or patch 7651091) Patch 9172975 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1.2
12.1.3 (patch9239090or patch 8919491) Patch 9879989 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1.3

不同版本的JDEV包含不同的FND包,所以你必须挑选正确保本的JDEV来下载

Extract the JDeveloper patch

JDev Patch解压后会有三个目录

JDeveloper Setup for OA Framework_第1张图片
jdevbin – Includes an extended version of the Oracle JDeveloper 10g executable and OA Framework class libraries.
jdevhome – Includes the OA Framework Toolbox Tutorial source and developer working area.
jdevdoc – Contains documentation


JDEV_USER_HOME Environment Variable

增加一环境变量:JDEV_USER_HOME,值为<install directory>\jdevhome\jdev

JDeveloper Setup for OA Framework_第2张图片


Copy a .dbc file to your local dir

通过putty之类的工具SSH到Apps Server,在$INST_TOP/appl/fnd/12.0.0/secure或者$FND_SECURE目录下找到.dbc文件,把dbc文件拉到<JDEV_USER_HOME>\dbc_files\secure目录下


dbc文件内包含许多连接数据库的必要参数(比如APPS_JDBC_URL,DB_PORT,DB_HOST...),有点像Oracle数据库的tnsnames.ora配置文件。


Launch your JDeveloper

jdevbin\jdev\bin\jdevW.exe
JDeveloper Setup for OA Framework_第3张图片


Create a Database Connection

JDeveloper Setup for OA Framework_第4张图片


JDeveloper Setup for OA Framework_第5张图片

JDeveloper Setup for OA Framework_第6张图片

JDeveloper Setup for OA Framework_第7张图片

JDeveloper Setup for OA Framework_第8张图片


Hello World

JDev自带了一套Demo Project,你可以用它来测试JDev配置是否正确,File -> Open,<JDEV_USER_HOME>\myprojects\toolbox.jws

JDeveloper Setup for OA Framework_第9张图片

右键Tutorial project --> Project Properties --> Runtime Connection

和正常运行EBS系统不同,在JDev里运行OAF页面,我们没有提供一个responsibilities列表让用户选择,也没有提供一个页面让用户输入用户名和密码。我做的仅仅是右键一个Page,然后Run。所以系统用户,密码,还有职责的信息,你需要输入到这里"Runtime Connection"。注意:这个用户名和密码是有效的,并且这个用户可以访问对应的职责。

JDeveloper Setup for OA Framework_第10张图片

Use below query script to find Application Short Name and Responsibility Key

SELECT A.APPLICATION_SHORT_NAME,R.RESPONSIBILITY_KEY
FROM FND_RESPONSIBILITY R,FND_APPLICATION A ,FND_RESPONSIBILITY_TL TL
WHERE R.APPLICATION_ID = A.APPLICATION_ID
AND R.RESPONSIBILITY_ID = TL.RESPONSIBILITY_ID
AND A.APPLICATION_ID = TL.APPLICATION_ID
AND TL.RESPONSIBILITY_NAME LIKE 'Inventory%';


Run Options

JDeveloper Setup for OA Framework_第11张图片

OADeveloperMode默认都会有的,我需要做的是OADiagnostic加到Selected Options列表中区。

In jDeveloper, you must include OADiagnostic in the “Run Options”. This is effectively similar to setting profile option “FND: Diagnostics” to Yes in eBusiness Suite. Using this option, you will be able to click on ‘Diagnostics’ to enable On-Screen display of debug messages.



Database Connection中,选择刚刚设置的数据库。

JDeveloper Setup for OA Framework_第12张图片

还有一个设置,Business Components项下,选择刚才新建的数据库,这步对于仅仅测试下页面来说不是必须的,但是如果后续要新增BC4J组件的时候,就会使用到这个数据库连接。

JDeveloper Setup for OA Framework_第13张图片


右键oracle.apps.fnd.framework.toolbox.tutorial.webui.HelloWorldPG.xml,Run

JDeveloper Setup for OA Framework_第14张图片

JDeveloper Setup for OA Framework_第15张图片


Enjoy...




Some Other Reference

Configuring JDeveloper For Use With Oracle Applications 11i and R12 (Doc ID 330236.1)

你可能感兴趣的:(JDeveloper)