Skip to main content

How does ADF binding interact with EJB components?

If you are very curious to learn the architecture of EJB Data Control (a deep dive in to the implementation, not just high level blocks) and really want to learn how ADF bindings interacts with EJB components, then this post is for you.

In this post, I'm sharing Chapter 13 Building Business Services with EJB  from my book Oracle ADF Real World Developer’s Guide. This is absolutely free. You just need to click on the link given below to grab this resource :) 

A sneak peek at the architectural diagram of ADF binding for EJB:

The details of the components listed in the above block diagram are available in this chapter. You can also find a sequence diagram illustrating how each components are getting engaged when UI access data from EJB through ADF binding. Following topics are discussed in detail:
  • The architecture of a Fusion web application, using EJB as a business service 
  • Oracle ADF binding architecture for EJB 
  • How does ADF Model data binding work in the Java EE application? (Explained with the help of sequence diagrams)
  • Customizing error handling for the EJB services 

To download the Chapter, click here



Popular posts from this blog

Happy New Year 2018 !

We can't go back and change the beginning, but we always can start where we are and change the ending. Believe in yourself and you will be unstoppable!

Wishing you and your family a very happy new year 2018 !!!

How to set Bind Variable Values at runtime ?

In this post I'm sharing a couple of approaches for programmatically setting bind variables values at run time. This post is an attempt to explain 'When to use what ?'[ In case if you are familiar with 'Bind Variables' in ADF BC, please refer Section 5.10, Working with Bind Variables in Fusion Developer's Guide ]

1. Set the Bind Variable value using RowSet::setNamedWhereClauseParam(...)

You can use use the setNamedWhereClauseParam(...) method on the ViewObject interface (which extends oracle.jbo.RowSet) to set the value for bind variables. Please note this sets the value on default RowSet. In other words, this doesn't have any effect on the secondary RowSets that you/system generates.
ViewObject vo = am.findViewObject("EmployeesView1"); vo.setNamedWhereClauseParam("bindVarDeptId", new Number(10)); vo.executeQuery();
2. Set the Bind Variable value using ViewObject's VariableValueManager::setVariableValue(...)

VariableValueManager Ma…