Last Upate: 1/4/2011
Enable Diagnostic messages in BC
To enable diagnostic message in BC check Turn on Diagnostic to Debug Oracle ADF BC Applications
- Select the project (e.g., "Model").
- Do right mouse click and select "Project Properties"
- On the property dialog, select "Run/Debug/Profile".
- Edit your Run Configuration (e.g., "Default")
- On the right pane, you should see "Java Options" input text field. Add the following Java system parameter: -Djbo.debugoutput=console
Enable Diagnostic messages in View
You can enable both on the embedded or standalone WLS.
- The embedded WLS is the one that is running when you run your application from JDeveloper (during development)
- A standalone WLS is when you run wls from the start script (usually in production systems). You can run the embedded as a standalone too.
In the following examples will be enabling only 2 diagnostic options:
Enabling diagnostic messages in embedded WLS
You can enable diagnostic messages
- Open your ViewController Project Properties
- In "Java Options" add the parameters for enabling dagnostic messages. e.g. -Djbo.debugoutput=file -Djbo.logging.show.function=true
Moreover, you can perform this steps to a Model problem in case you want to have diagnotic messages when running Bussiness Components Tester.
Enabling diagnostic messages in standalone WLS
In the following example will be using the WLS that is shipped with JDeveloper as a standalone in a Windows machine.
Go to WLS bin directory. In our case %JDEV_SYSTEM_DIR%\DefaultDomain\bin\
(Note: Check related post to find out the JDEV_SYSTEM_DIR from log of the running WLS.)
Open file setDomainEnv.cmd On the top of the file after the comments enter the following line Then modify the following line (in the same line.)
to (in the same line.)
The is also an alternative way. You do not need to set -D params but edit the Diagnostic.properties file. Just take a look on the following quoted text:
Business Component diagnostics can be controlled by setting various jbo.xxx system properties. By default, the system property definitions reside in the file Diagnostic.properties in the .\oracle\jbo\common path on theCLASSPATH.
A default version of this file is supplied in the .\lib\jbomt.zip library. You can permanently change the default settings by extracting this file from the .zip archive, changing the values of the properties in the file, and making it available earlier in your project's library path. The file must appear before the library named "JBO Runtime" in the appropriate .\oracle\jbo\common subdirectory.
(I ll try to find time to give a more detailed and ready to use example)