Tuesday 15 July 2014

Analysing ADF Requests in JDeveloper (11.1.1.7 and others)

Once again, there are plenty of blogs out there to tell you that you can use the "Oracle Diagnostic Log Analyzer" to see exactly what is going on in the background of your request (and there is a lot).

"Brilliant", you say, "I have been looking for such a tool...and its within JDev. Cool".

Until you come to use it in 11.1.1.7 (other versions might be affected) and you can't get the requests to show up in JDeveloper.

You might come across it when you carry out some requests and the Oracle Diagnostic Log Analyzer shows up "xxx requests found, 0 displayed"

Fret not...it's just a case of setting the logging. This also means you do not have to restart the integrated server, saving minutes of your day.

There was a forum question based on this - Why ODL is displaying nothing?

Step 1 - Open the logging.xml file
Ensure your integrated server is up and running and select "Configure Oracle Diagnostic Logging"







Step 2 - Add oracle.adfdiagnostics logger
Thanks to the useful videos at ADF Insider Essentials, one of the videos comments on adding this entry. Add a persistant logger so it doesnt always disappear upon server restart and type oracle.adfdiagnostics and set the level to Config











Step 3 - Set correct logging levels
You need to set 3 other logging levels as well as oracle.adfdiagnostics: oracle.adf, oracle.adfinternal and oracle.jbo. Set them all to Config also.















Step 4 - Open the Analyzer
There's a few ways you can open the Request Analyzer from within Jdeveloper - my preferred way is to go where we opened logging.xml from but choose "Analyze Log" --> "Current in Console"













Step 5 - Do Something!
Perform a request in your application.

Step 6 - Analyze
Click Search in the analyzer and you should now see your request with all the JDeveloper colour glory. Now you can pat yourself that this very easy task took a blog lookup to get working :-)










Happy Days.

No comments:

Post a Comment