Wednesday, August 18, 2010

Do you deal with Master-Child applications in your application?

Some tips if your ADF application has child applications included as jars to your Master application.
1. Always have a defined directory structure for the model. Do not use the default provided by the framework.
e.g. The Model.jpx of Master app should be   orgName.appName.model
       whilel the Model.jpx for Child app should be orgName.appName.childappName.model

2. There should also be a defined/different directory structure for DataBindings.cpx
  e.g. The DataBindings.cpx of Master app should be under orgName.appName.view
and that of Child app should be orgName.appName.childappName.view

This helps avoiding the below warning
WARNING: The commonly named resources listed below could cause reusability errors for your consumers.

and eventually the Error
oracle.jbo.JboException: JBO-34010: The "view/DataBindings.cpx" descriptor appears in the application classpath more than once:

You might also want to do a clean build if you face this error or delete the remains of the application from
JDeveloper\system11.1.1.2.36.55.36\o.j2ee\drs  folder.

No comments:

Post a Comment