Book Image

Oracle ADF Real World Developer's Guide

By : Jobinesh Purushothaman
Book Image

Oracle ADF Real World Developer's Guide

By: Jobinesh Purushothaman

Overview of this book

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.
Table of Contents (20 chapters)
Oracle ADF Real World Developer's Guide
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Invoking an application module from a Java servlet


We have discussed the basic configurations and metadata files required for running an ADF web application. This is very easy if you build an application by choosing a Fusion web application template. JDeveloper will take care of managing all the metadata files-dependent libraries.

What if you want to call services exposed by an application module from a non-ADF web application?

There are two approaches:

  • Using Configuration::createRootApplicationModule(String qualifiedAMDefName, String configName) to create an appropriate application module instance, and then calling desired methods on it

  • Using ADF Model APIs for accessing business methods exposed through data control

These approaches are discussed in the following sections.

Using Configuration::createRootApplicationModule() in HttpServlet

You can call createRootApplicationModule() on the Configuration class to instantiate an application module in a Servlet class. While doing so, make sure you...