Wednesday, January 25, 2012

Books Index


For details click here.

Thursday, May 13, 2010

Extensions Index

Extension Intermission #1 - Subversion Monitor, Extension to monitor a subversion repository
There are at least a couple of utility programs that will let you monitor the commit activity on a subversion repository both running on the Windows platform. Here is a third one, appropriately baptized Subversion Monitor, developed to run - of course - as a JDeveloper extension. SubversionMonitor.zip

Sunday, December 20, 2009

JDeveloper Frequently Asked Questions Index

Installing and configuring the standalone version of WebLogic involves the creation of a WebLogic domain. The ADF libraries must be installed on the domain during its configuration. In addition a few more changes are needed in the startWebLogic.cmd script. Read more ...

FAQ #2 – How to enable debug information generation for an ADF BC project
There is a great amount of debug information generated each time an ADF BC project runs using the BC application module tester. Among such information are the queries executed by the views, the values that are assumed by bind variables, record counts retrieved and so on. Read more ...

Once we have installed and configured the standalone WebLogic server it becomes easy to deploy our ADF applications directly through JDeveloper. Read more ...

Remote debugging comes handy in situations where enterprise applications are split-up across multiple JDeveloper application workspaces. Also it comes handy if you want to keep different reference versions of the application deployed on the server and you want to debug an older or different version. Read more ...

FAQ #5 - How to remote profile an ADF application deployed on standalone WebLogic using JDeveloper 11g R1
Profiling is a valuable tool in the JDeveloper toolbox that can help us in the diagnosis of performance issues by identifying code that consumes more time, code that is called more often (CPU profiling) and how memory is used by the deployed application (memory profiling). Read more ...

FAQ #6 - How to fine tune ADF diagnostics logging in JDeveloper 11g R1
ADF Diagnostics Logging is a powerful feature in JDeveloper. Through simple configuration, it allows you to fine tune the log generation of your application and much more. Read more ...

FAQ # 7 - How to configure ADF diagnostics logging in standalone WLS using JDeveloper 11g R1
ADF Diagnostics Logging for the standalone WLS is done through the logging.xml file in a similar fashion as for the integrated WLS. It is a powerful feature that allows us to fine tune the log generation of our application and much more. Read more ...

FAQ #8 - How to perform log analysis using the Diagnostic Log Analyzer in JDeveloper 11g
When it comes to diagnostics logging, a possibly lesser known feature of JDeveloper is its ability to perform log analysis. Known as the Oracle Diagnostic Log Analyzer, it allows the developer to open a diagnostics log file and do a limited yet useful log analysis. Read more ...

FAQ #9 - How to configure unit testing an ADF BC project using JUnit in JDeveloper 11g
Unit testing an ADF BC project in JDeveloper could be a straightforward task when using the JUnit ADF Business Components Test Suite Wizard. There are a few twists and turns on the way, which once straightened out should make unit testing a routine. Read more ...

FAQ #10 - How to configure ojdeploy as an Ant target in JDeveloper 11g
For large-scale enterprise applications consisting of multiple workspace projects, the utilization of ojdeploy for automating the build and deployment processes becomes necessary. Although in these cases the deployment process runs from the command-line as a deployment script, you can configure an Ant target to run it from within the JDeveloper programming environment. Read more ...

FAQ #11 - How to install and configure Fusion Middleware Control on JDeveloper 11g R1
The Oracle Enterprise Manager 11g Fusion Middleware Control application offers a number of ADF performance monitor and configuration options. These and more are described in the Oracle® Fusion Middleware Administrator's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1) manual. This FAQ will guide you through the installation and configuration of Fusion Middleware Control on the standalone WLS that ships along with JDeveloper 11g. Read more ...

FAQ #12 - How to disable query "wrapping" for expert mode queries in ADF 11g
In ADF, when using read-only views, query "wrapping" refers to nesting of the original query into an inline view. In such cases, query "wrapping" could produce unexpected results and should be disabled. This FAQ shows you how. Read more ...

FAQ #13 - How to avoid common pitfalls related to expert mode queries in ADF 11g
Using expert mode queries gives you full control of the SQL query definition in ADF BC. This comes with a cost. So, when using expert query mode, observe and navigate away from the pitfalls associated with it. Read more ...

FAQ #14 - How to test an Application Module for activation-safe in ADF 11g
For ADF applications, Activation refers to the process of re-instating an Application Module (AM) from a stored snapshot. A recommended test practice for ADF applications is to ensure that AMs are tested for activation-safe. Read more ...

FAQ #15 - How to synchronize ADF Entity Objects with database changes in JDeveloper
For ADF applications, as the database schema evolves, there will be a need to synchronize the corresponding Entity and View objects involved, to reflect the changes in the schema. This is a pretty straightforward task in JDeveloper; there are a few things to watch out however. Read more ...

FAQ #16 - How to get started with the JDeveloper Extension SDK, Part 1
The JDeveloper Extension SDK is a framework of Java classes that allows for the development of third party add-ins (extensions) to the JDeveloper IDE. Pretty much any aspect of the JDeveloper user interface and functionality can be tapped into, from menus and toolbars to wizards and editors. This FAQ will focus on how to get started with the Extension SDK. Read more ...

FAQ #17 - How to get started with the JDeveloper Extension SDK, Part 2
In FAQ #16 - How to get started with the JDeveloper Extension SDK, Part 1 we  talked about the basics of getting started with writing your own JDeveloper extensions. In this FAQ we will expand on that knowledge to cover a few more introductory topics. Specifically we will talk about: 1) how to create a progress bar to indicate a long running action and 2) how to create and utilize a log window specific to your extension. Read more ...

FAQ #18 - How to get started with the JDeveloper Extension SDK, Part 3
With this part, we will conclude the series of getting started with the JDeveloper Extension SDK. We will wrap up the example extension that we started in part 1 by constructing a custom editor and a custom preferences page for specifying the extension settings. Finally we will package the extension, so that it can be installed in JDeveloper through the Help | Check for Updates... feature.  Read more ...

 FAQ #19 - How to check and improve code quality in JDeveloper
When it comes to checking and improving code quality, JDeveloper provides the View Status facility. Factoring in its ability to support third party tools through extensions, some already exist - PMD for example - others are left to the imagination of the able programmer, the possibility of producing good quality code now rests on utilizing these tools among others. In this FAQ will take a look at the View Status facility and at the PMD extension. Read more ...

FAQ #20 - How to refactor ADF components in JDeveloper
When it comes to refactoring ADF components in JDeveloper, most ADF developers come to know the refactoring features when they rename, move or delete Business Components (BC) objects. Yet fewer know that additional options exist in JDeveloper to refactor object attributes, attribute domain types, bindings, JSF pages and more. Read more ...

FAQ #21 - How to passivate/activate ADF Application Module class instance variables
If you are using instance variables in your Application Module (AM) class, as part of some algorithm in your application and you expect these variables to persist from one user request to another so that the algorithm works as expected, passivation (and activation) support for these variables must be added. This FAQ will show you how to do this and at the same time build a "mini sub-framework" to avoid duplication of the basic passivation-activation code that you must write for all your AMs in your project. Read more ...

FAQ #22 - How to get started with SOA Suite 11g R1, Pt. 1
In this series of posts, we will examine some basic steps of getting started with Oracle SOA Suite. This first part deals with the software installation and configuration on a simple development environment. Installing SOA Suite 11g is a series of steps that include a database installation, installation of WLS, installation of the... Read more ...

FAQ #23 - How to get started with SOA Suite 11g R1, Pt. 2
In FAQ #22 - How to get started with SOA Suite 11g R1, Pt. 1 we covered the installation of SOA Suite 11g R1 on a development environment. We will continue in this part with setting up the SOA development environment in JDeveloper and developing a simple Database Adapter Service to return the Employee's information from the HR schema. Read more ...

FAQ #24 - How to get started with SOA Suite 11g R1, Pt. 3
In this third part of getting started with SOA Suite 11g we will continue the example that we started in part two by introducing a Web Service binding to our project. Read more ...

FAQ #25 - How to get started with SOA Suite 11g R1, Pt. 4
In this part of the How to get started with SOA Suite 11g R1 series we will conclude the EmployeeInquirer composite by wiring the Web Service binding to the Database Adapter using a Mediator component. We will also deploy the composite to WLS and test it using Enterprise Manager. Read more ...

FAQ #26 - How to Install JDeveloper on Linux
As it turns out, installing JDeveloper on Linux is very simple. Simply download the Linux version of the JDeveloper installation package and run it. Follow the directions presented during the installation and when done, start JDeveloper by running the jdev executable in the /jdeveloper/jdev/bin directory. Read more ...

FAQ #27 - How to setup a WebLogic cluster, Pt. 1
This and the next FAQ will go over setting up a WebLogic cluster consisting of two Managed Servers running on a separate physical machine each. For the case of this example, each machine is running a different Linux distribution. Read more ...

FAQ #28 - How to setup a WebLogic cluster, Pt. 2
In this second part of setting up a WebLogic cluster we will continue where we left of in part one and complete our cluster installation. We will also do some monitoring on the cluster setup to ensure that is configured and working properly. Read more ...

FAQ #29 - How to deploy the ADF runtime libraries to a WebLogic cluster
In FAQ #27 and FAQ #28 we went through a WebLogic cluster setup comprised of two WebLogic Managed Servers running on separate physical machines each. In this FAQ we will take a look at how to extend the clustered domain with the ADF runtime libraries. Read more ...

FAQ #30 - How to setup a WebLogic cluster load balancer using Apache and the Apache HTTP Server Plug-In
Load balancing refers to obtaining high availability and better performance by dispatching incoming user requests to different servers on a clustered setup. A load balancer can be anything from a simple servlet or plug-in, to expensive hardware. In this FAQ we will take a look at the Apache HTTP Server Plug-In and how it can be configured to proxy requests to the WebLogic cluster that we setup in FAQ #27 and FAQ #28. Read more ...

FAQ #31 - How to create your own in-house Update Center in JDeveloper
If you ever used the Check for Updates... feature in JDeveloper, I am sure you've seen the list of available Update Centers from which you can download your JDeveloper extensions. In this post we will go through the process of adding your own Update Center to supply your own extensions in a corporate environment. Read more ...

FAQ #32 - How to get started with JRockit Mission Control, Pt. 1
JRockit Mission Control is a suite of tools that can be used to monitor, profile and manage the JRockit Java virtual machine. Among other, managing the JRockit Virtual Machine includes performing garbage collection on demand and eliminating memory leaks. JRockit is the virtual machine used in a production system by the WebLogic application server. Read more ...

FAQ #33 - How to configure ADF diagnostics logging in WLS, Pt. 3
In this third installment of posts related to the configuration of ADF diagnostics logging we will focus on the following topics: 1) how logs could be added programmatically to the diagnostics log, 2) how new Loggers could be added and configured to the diagnostics logging configuration and 3) how to dynamically configure the WebLogic diagnostics logging. This includes changing the logging levels for the configured loggers at run-time without the need to restart the server. Read more ...

FAQ #34 - How to utilize WebLogic Work Managers for long-running ADF processes, Pt. 1
The WebLogic Work Manager functionality along with its supporting Java API - CommonJ, can greatly improve performance for those long running processes in your ADF applications, especially for those notorious ones - you know, the one that cause "stuck" threads? This is... Read more ...

FAQ #35 - How to set default values for View object row attributes
In this post we will see how to set default values to View object attributes. There are a number of places where you can do this: in the overridden View object row create() method, declaratively using a Groovy expression, in the attribute getter method. To demonstrate each case, consider the use case of... Read more ...

FAQ #36 - How to create audit trail records using ADFBC, Pt. 1
ADFBC allows for the creation of historical audit trail records at the entity object level via the use of history columns. By default the framework allows for keeping track of historical information for attributes indicated as Created On, Created By, Modified On, Modified By and Version Number. This is explained in section 4.10.12 How to Track Created and Modified Dates Using the History Column of the... Read more ...

FAQ #37 - How to create audit trail records using ADFBC, Pt. 2
In this second part of creating historical audit trail records using ADFBC we will see how to integrate, in a generic way, the store procedures introduced in part 1 of these series. For more information on the database schema and store procedures that are required to support this technique refer to... Read more ...

FAQ #38 - How to add help to an ADF application
Adding help to an ADF Fusion Web application is thoroughly explained in section 19.5 Displaying Help for Components of the Web User Interface Developer’s Guide for Oracle Application Development Framework guide. Yet, as it seems from this post... Read more ...