JDeveloper Setup for OA Framework

Posted 田攀

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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 VersionJDeveloper 10g 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 (patch 9239090 or patch 8919491)Patch 9879989 10G JDEVELOPER WITH OA EXTENSION ARU FOR R12.1.3

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

Extract the JDeveloper patch

JDev Patch解压后会有三个目录


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



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


Create a Database Connection




Hello World

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

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

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

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

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中,选择刚刚设置的数据库。

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



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


Enjoy...




Some Other Reference

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

以上是关于JDeveloper Setup for OA Framework的主要内容,如果未能解决你的问题,请参考以下文章

JDeveloper 服务器实例域无效

为 Jdeveloper 12c 配置 SOA 扩展

无法启动服务器实例,因为集成的 Weblogic 域没有成功构建。-jdeveloper

JDeveloper 基于 DB 的 MDS 连接问题

无法创建Java虚拟机实例,Jdeveloper 10g

我的 api REST 调用 OSB oracle 服务总线有啥问题,jdeveloper