Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Oracle ADF Real World Developer's Guide
Oracle ADF Real World Developer's Guide

Oracle ADF Real World Developer's Guide: Mastering essential tips and tricks for building next generation enterprise applications with Oracle ADF with this book and ebook.

Arrow left icon
Profile Icon Jobinesh Purushothaman
Arrow right icon
€27.98 €39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (12 Ratings)
eBook Oct 2012 590 pages 1st Edition
eBook
€27.98 €39.99
Paperback
€48.99
Subscription
Free Trial
Renews at €18.99p/m
Arrow left icon
Profile Icon Jobinesh Purushothaman
Arrow right icon
€27.98 €39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (12 Ratings)
eBook Oct 2012 590 pages 1st Edition
eBook
€27.98 €39.99
Paperback
€48.99
Subscription
Free Trial
Renews at €18.99p/m
eBook
€27.98 €39.99
Paperback
€48.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Oracle ADF Real World Developer's Guide

Chapter 2. Introduction to ADF Business Components

The crux of any enterprise application is its business logic implementation. The business service layer of a fusion web application is built using Oracle ADF Business Components. This chapter gives you an overview of ADF Business Components, which includes discussion on the following topics:

  • Business service layer

  • Overview of ADF Business Components

  • Building a simple business service

  • Oracle ADF Model Tester

  • Java test client for Business Components

  • Understanding the runtime behavior of ADF Business Components

The intention of this chapter is to provide you with a brief description of ADF business components. This should hopefully help you to understand the larger picture when we discuss individual business components in the next chapters. If you are already familiar with ADF Business Components, you are free to skip this chapter and move on to the next chapter.

Business service layer


Business logic for an application resides in the area between the UI layer and datasource, fulfilling the requests from the client by interacting with the datasource or other third-party services. A well designed application may have multiple layered structures for business service implementation, where each layer plays a unique role by improving the extensibility of the entire architecture. Let us take a quick look at the various layers found in a multilayered business service implementation:

  • Service layer : This layer defines the service contracts to be used by a client. The Service layer receives the message sent from the client and delegates it to the appropriate business logic implementation for further processing. The advantage of having a service layer is that it decouples the implementation of services from the service contract, which makes an application more flexible and extensible.

  • Business logic layer : This layer defines the business logic that is required...

Overview of ADF Business Components


ADF Business Components along with JDeveloper provide a visual and declarative development approach for building business logic for an application. By default, business components are configured by using XML metadata files. At runtime, the ADF framework uses the configurations stored in metadata XML definition files for instantiating appropriate business components. If you want to override the default behavior of the business components offered by the framework or want to add custom business logic, then you can generate Java implementation for the desired business components and add your logic there. To customize the default behavior of business components, you must override the appropriate methods from the default base class.

Oracle ADF Business Components' feature list

Oracle ADF Business Components offers many features which are not typically found in other development tools. Let us take a quick look at the ADF Business Components' feature list to understand...

Building a simple business service


In this section, we will create a simple ADF model project to get familiarized with the visual aids and tools for building business logic by using ADF Business Components.

Tip

Function key F1 is your friend!

While working with any editor dialog, you can press F1 to learn more about the features available on the currently active editor window.

To build business services using ADF Business Components, perform the following steps:

  1. Right-click on the application navigator in which you want to create the model project, and choose New Project to open New Gallery.

  2. Expand the General node, select Projects, and then select ADF Model Project.

  3. In the ADF Model create wizard, enter the name for the project. Optionally, you can enter the package name. The wizard will generate the model project in the application navigator.

  4. To generate business components, right-click on the model project and choose New.

  5. In New Gallery, expand Business Tier, select ADF Business Components...

Oracle ADF Model Tester


Smoke testing of the business model implementation is essential for the success of any application development. The JDeveloper comes with a Graphical User Interface (GUI) based Model Tester to test your business components.

To test the business components, select the application module in the Application Navigator window, right-click on it, and choose Run or Debug. JDeveloper will display the Oracle ADF Model Tester window as shown in the following screenshot:

The ADF Model Tester tool will let you test the data model that has been exposed through an application module. This includes executing view object instances to query the datasource, traversing master-child view object instances linked though view links by modifying the attribute values, committing or rolling back a transaction, and invoking business methods.

A quick walkthrough of the commonly used ADF Model Tester toolbar buttons is as follows:

Buttons

Description

The navigation buttons displayed in the toolbar...

Using the ADF Model Tester to test the CRUD operations on business data


In the ADF Model Tester window, select the view object instance in the data model tree on the left and execute the same by double-clicking on it. Alternatively you can right-click on the view instance and select the Show option to execute a specific view object instance. The result will be displayed on the data view page on the right-hand side. You can navigate between rows by using the navigation buttons displayed in the toolbar. If you modify the attribute values, that transaction can be saved by using the transaction commit button.

To test master-detail co-ordination between view objects, double-click on the view link instance displayed between the master and child view object instances in the data model tree.

Testing business methods

There are two instances—application module and view object—through which business methods are exposed in the ADF Business Components architecture.

Note

To learn about exposing custom methods...

Java test client for ADF Business Components


You can generate a Java test client to test the application module and associated data model. The step for generating a Java client is simple and straightforward.

To generate a Java test client class, perform the following steps:

  1. Right-click on the project and select New.

  2. In the New Gallery window, select Java under the General category node and then select Class on the right side of the panel. Enter the package and class name.

  3. In the generated Java class source, keep the cursor inside the body of the main (String[] args) method, type the characters bc4jclient, and press Ctrl + Enter. This will generate a basic skeleton to invoke the application module.

  4. Modify the amDef and config variables to reflect the names of the application module definition and the configuration that you want to test.

The following code snippet shows a simple test client program to test an application module:

Tip

Downloading the example code

You can download the example code...

Understanding the runtime behavior of ADF Business Components


In the previous section, we discussed building a simple ADF model project and learned how to test the business components by using the built-in Model Tester as well as by using the code. You might be wondering now, how do all these things work even without writing down a single line of code? It's time for us to explore the real heroes who do the real jobs behind the scenes.

If you use ADF Business Components for building business logic, you do not really need to worry about the low-level coding, which is otherwise required for querying the database and populating the collection to be used by the client, tracking the modified item, and posting the updates back to the database. In this section, we will learn about the roles and responsibilities of each business component. We will see how they collaborate and work together at runtime to query the datasource and to manage the user transactions.

Roles and responsibilities of the view...

Summary


In this chapter, we discussed the core building blocks of ADF Business Components and how they collaborate and work together at runtime to perform basic CRUD operations on rows from a datasource. In this chapter, you have learned the following:

  • Role of business service layer in an enterprise application

  • Building blocks of ADF Business Components

  • Using JDeveloper to build ADF business components

  • How the view object reads data from database

  • How the entity object participates in the transaction post cycle

This chapter is intended to give you an overview of business components. We will take a closer look at each business component item in the coming chapters. The next chapter discusses the entity object and its basic features. More advanced features of entity objects are covered in Chapter 5, Advanced Concepts on Entity Objects and View Objects.

Left arrow icon Right arrow icon

Key benefits

  • Full of illustrations, diagrams, and tips with clear step-by-step instructions and real-time examples.
  • Get to know the visual and declarative programming model offered by ADF.
  • In depth coverage of ADF business components and ADF binding layer.
  • Teaches you the ADF best practices and fine-tuning tips.

Description

Oracle ADF in combination with JDeveloper IDE offers visual and declarative approaches to enterprise application development. This book will teach you to build scalable rich enterprise applications using the ADF Framework, with the help of many real world examples. Oracle ADF is a powerful application framework for building next generation enterprise applications. The book is a practical guide for the ADF framework and discusses how to use Oracle ADF for building rich enterprise applications. "Oracle ADF Real World Developer's Guide" discusses ADF framework in detail. This book contains a lot of real life examples which will help developers to design and develop successful enterprise applications. This book starts off by introducing the development environment and JDeveloper design time features. As you read forward, you will learn to build a full stack enterprise application using ADF. You will learn how to build business services using ADF, enable validation for the data model, declaratively build user interfaces for business service and enable security across application layers.

Who is this book for?

If you are an ADF developer looking forward to building healthy and better performing applications using Oracle ADF, then this is the best guide for you. You need to be proficient with Java and ADF before getting started with this book.

What you will learn

  • Get started with building business services using ADF business components
  • Master how to use ADF controller to define navigation flow in an application
  • Get to grips with building reusable web modules using ADF task flow
  • Learn how to validate business data in different layers of an application
  • Understand the use of EJB and web services in an ADF application
  • Get some tips to fine tune an ADF web application

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 22, 2012
Length: 590 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684835
Vendor :
Oracle
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 22, 2012
Length: 590 pages
Edition : 1st
Language : English
ISBN-13 : 9781849684835
Vendor :
Oracle
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 136.97
Oracle ADF Enterprise Application Development Made Simple: Second Edition
€45.99
Oracle ADF Real World Developer's Guide
€48.99
Developing Web Applications with Oracle ADF Essentials
€41.99
Total 136.97 Stars icon
Banner background image

Table of Contents

12 Chapters
Getting Started with Oracle ADF Chevron down icon Chevron up icon
Introduction to ADF Business Components Chevron down icon Chevron up icon
Introducing Entity Object Chevron down icon Chevron up icon
Introducing View Object Chevron down icon Chevron up icon
Advanced Concepts on Entity Objects and View Objects Chevron down icon Chevron up icon
Introducing the Application Module Chevron down icon Chevron up icon
Binding Business Services with the User Interface Chevron down icon Chevron up icon
Building Data Bound Web User Interfaces Chevron down icon Chevron up icon
Controlling the Page Navigation Chevron down icon Chevron up icon
Taking a Closer Look at the Bounded Task Flow Chevron down icon Chevron up icon
More on Validations and Error Handling Chevron down icon Chevron up icon
Oracle ADF Best Practices Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(12 Ratings)
5 star 75%
4 star 16.7%
3 star 0%
2 star 0%
1 star 8.3%
Filter icon Filter
Top Reviews

Filter reviews by




Chris Muir Nov 12, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Disclaimer: I'm an Oracle ADF Product Manager.As part of my regular job I've read *every* book on ADF. Given there's now several ADF beginners' books I thought the introductory level to ADF area was already amply covered, and I didn't know what Jobinesh's latest ADF text could add. However I must admit I was pleasantly surprised, as even though this book obviously covers many beginners topics, it also covers topics the others haven't making it another valuable addition to the ADF textbooks currently available.Of particular interest to me was the introduction of:1) Framework class diagrams - explaining for example how the ADF BC and binding layer classes relate to each other, therefore giving insight into what objects you actually work with programmatically when you drop to code in ADF2) JSF Servlet, ADF Servlet & Filter lifecycle - a soup-to-nuts discussion starting at the configuration of the web.xml, the importance of the order of the filters, and the overall lifecycle of the framework3) Application Module scenario diagrams - what objects and methods get called when an Application Module is instantiated so not only do you get an abstract discussion of the AM lifecycle, but how it relates to actual code.Don't get me wrong, Jobinesh covers all the usual beginner topics, ADF Business Components, task flows, ADF Faces and more, but the fact that he's focused on the Java and Java EE side of ADF brings two very useful discussions on the framework together, which I believe creates a good learning opportunity.A recommended read for beginners.
Amazon Verified review Amazon
Sputhurk Visa May 22, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is one of the best books available in the market to master ADF.Contains lot of practical examples which are really useful to become an expert in ADF.My favorite part is the bean snippets. You can see tons of code snippets which you can utilize in your projects.
Amazon Verified review Amazon
majid Jan 15, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Best book in ADF
Amazon Verified review Amazon
Frank Nimphius Nov 23, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book really found itself a niche in the existing Oracle documentation and books that exist.In his book Jobinesh addresses beginners as well as expert ADF programmers. Unlike existing books, this book has a string focus and strong expertise shared on ADF Business Components as the business service. The book provides a detailed look at how entities, view objects and application modules are defined and how they work at runtime. In addition you learn a lot of advanced hints and tips that really will accelerate your skill set to a professional level.Though book has a strong set on ADF Business Components, this is not all Jobinesh has to share. The ADF binding layer, view layer and controller are covered equally well, making the book a joyful reading and a necessity for ADF developers. As mentioned, it founds it niche and - though having some overlaps - greatly adds to the written content available for Oracle ADF.My recommendation: Buy it. This book is worth every dime.
Amazon Verified review Amazon
Serafeim Karapatis Dec 15, 2012
Full star icon Full star icon Full star icon Full star icon Full star icon 5
It is interesting to compare this book with Oracle's online developer's guide, which actually counts over 1800 pages. At first sight, the book structure resembles that of official documentation. However, it is superior to examples and abundance of source code. It covers in detail many of the interior aspects of the framework that have not been described elsewhere, such as how locking works, managing transactions in different layers, the ADF lifecycle, metadata files and much more. Particular emphasis is also given into ADF Java APIs. Jobinesh, a well respected ADF architect and blogger, when refers to a subject, he often describes very thoroughly how it works, providing examples of available APIs and also citing execution flows at runtime. On the other hand, on issues that are already well provided by official documentation or by online resources, he gives a brief description and direct referrals in order to avoid repetition. Finally, it is worth mentioning that the relevant (rich) code downloads section cover all examples of the book, and is perceived as a great gift.The contents of the book includes twelve chapters, half of which relate to the ADF BC and four to ADF Faces and ADF Controller. There are two chapters of mixed content about validations and best practices. The persistence on technical detail makes the book invaluable for middle-level and senior ADF developers ADF, but I would not recommend it for first ADF reading for those who are coming from a 4GL (Oracle Forms) or Java / JEE background.A quick walk-through of the content. The first chapter ("Getting started with Oracle ADF") describes a short demonstration of ADF development. Then ("Introduction to ADF Business Components") briefly deals with the ADF BC, the query and transactional modes of operation, accompanied with comprehensive UML sequence diagrams and corresponding details. We continue with the description of entity objects (chapter 3) and view objects (Chapter 4) covering all their great potential both at declarative and programming level. The lifecycle events of entities and view objects are the subject of "Advanced Concepts on Entities Objects and View Objects" which is a wonderful presentation of the related APIs for transactional and query operations. Equally interesting is the chapter on Application Modules, covering various aspects of customization (tuning parameters, shared modules, passivation, savepoints, etc.)In the chapter "Binding Business Services with the User Interface" we learn a lot about the different types of ADF bindings, the metadata files and a probable interfacing with Servlets. After that ("Building Data Bound Web User Interfaces") ADF Faces components are described, their binding with the ADF model, iterators, and the advanced configuration of ADF query panels. Chapters 9 and 10 refer to the ADF task flows, transactional management in regions, in ADF trains and there is also a interesting reference to savepoints. In "More on Validations and Error Handling" we see details about their handling at the level of ADF Faces and ADF Model. Chapter 12 ("Oracle ADF Best Practices") encapsulates several recipes for project organization and cites configuration options for achieving greater performance and scalability to our ADF applications and thus concludes the book perfectly.Therefore, for those who want to expand their knowledge in the ADF, to understand its internals and capabilities, and also learn many configuration options (and corresponding APIs) then this book is a one stop shop. The author describes each feature in high depth and by giving multiple perspectives. I believe that the book would be even more complete if it included more details about the ADF Faces as well as advanced features such as using javascript, personalization, testing practices, etc, which are also relevant to many real world cases.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.