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