Saturday, December 13, 2014

Why Orace ADF-Business Component is important



Hi friends, 

Today I’m going to explain about Why we need Oracle ADF Business Components as business services layer as I face this question in lot of interviews and sometime I feel it’s difficult to tell the benefits of Oracle ADF Business Component over other , so here I’ll tell some benefits of Oracle ADF Business Components.
Oracle ADF Business Components used for building business services.

Oracle 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.

So it will be useful for a novice and Expert users in following ways 

    Oracle ADF Business Components provides a visual and declarative development experience building business logic for the application. Business component definitions are kept in XML files and optionally generate Java implementation to write the custom business logic
    ADF Business Components are built using Object Relational Mapping (ORM) concepts by abstracting the underlying data source from the developer.
    Exposing the services through multiple channels such as EJB, web service, or plain Java to be used by various clients
    Oracle ADF Business Components provides design-time support for exposing business service implementation as web services with very minimal or zero coding.
    Layered architecture of business components improves the reusability and extensibility of each piece used for building the business services.
    Oracle ADF Business Components provides built-in support for managing database connection and middle tier transaction.
    ADF supports building model driven UI components. In this approach, the framework builds UI components on the fly by using UI hints present in the view object's XML metadata file. The list of values (LOV) and query components are built by leveraging this feature.
    ADF allows you to declaratively synchronize the master and details collection displayed on a page. You can declaratively enable master details co-ordination at the model, which can be leveraged by the binding layer to synchronize the master and detail data display at runtime.
    ADF offers infrastructure services such as paginated queries, validation, security, concurrency management through locking, and business data auditing. The framework also offers declarative tuning support for business components.
   Provide the ADF Model Tester tool for Testing the ADF-BC Implementation before creating the UI.

Oracle ADF Model Tester:

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:

 Select the EmployeeVO1 viewobject Instance and right click and select the option show or show table to see the data as shown below.





Testing business methods:

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

To test the methods exposed through an application module instance, double-click on the application module name displayed at the root of the data model in the Oracle ADF Model Tester window. This action will display a drop-down list on the data view page with all the exposed methods from the selected application module. You can pick up the desired method and click on Execute to test the method as below.


 To test the methods exposed through the view object, right-click on the view object instance in the data model tree in the Model Tester window to display the context menu and select the operations menu item.




No comments:

Post a Comment

Use GlassPane in ADF Appliation

Hi, Today I thought of sharing my knowledge via writing Blogs as I also learn a-lot from blogs and it’s really useful when u stuck in s...