Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Access App Modules from same workspace OR from different workspaces

836415Feb 2 2011 — edited Feb 2 2011
Hello,

1- I want to access an application module methods "application A", from another application module methods "Application B", the two applications are developed under different workspaces, Is this doable
in Oracle ADF, I need a solution other than web services if possible.

2- I tried to access a method in AppModuleA using another method in AppModuleB, the two application modules are in the same work space but in different model project, I followed the link :
http://myadfnotebook.blogspot.com/2010/08/problem-adf-application-with-multiple.html
I used the following code:

public String getQueryMultipleDB(){

getEmpView1().executeQuery();
String DB1 = String.valueOf(getEmpView1().getRowCount());
String DB2 = " ";

ApplicationModule appModuleDB2 =
Configuration.createRootApplicationModule("modelDB2.ApplicationModuleDB2.common.AppModuleDB2","AppModuleDB2Local");
ViewObject viewObjectDB2 = appModuleDB2.findViewObject("EmpView1");
DB2 = String.valueOf(viewObjectDB2.getRowCount());

return "DB1: "+ DB1 + " DB2: "+ DB2;
}

but I am getting the following error:

(oracle.jbo.ConfigException) JBO-33001: Configuration file /modelDB2/ApplicationModuleDB2/common/common/bc4j.xcfg is not found in the classpath.

Please help if possible...
Thanks in Advance,
MAbuShaera
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 2 2011
Added on Feb 2 2011
1 comment
113 views