Call ADF Application Module from servlet

Home/ADF/Call ADF Application Module from servlet

Call ADF AppModule method from ADF Servlet

This section we walk through about calling an AppModule method in  HTTP servlet class.

  1. I have the following method in my AppModuleImpl class which prints country name

 

2. Expose the Appmethod module: Double click on the AppModule.Xml file, Click the Java,  Click the pencil icon on the Client Interface and move the method from Available area to the Selected area as shown below

Picture-300x146 Call ADF Application Module from servlet

Call AppModule method in HTTPServlet

3. Create a servlet class under the ViewController package and add the following lines inside the servlet method.This method calls the printCountries() method in the AppModuleImpl class.  I added it in the doPost() method, also it can be added in init(), doGet() or any other methods

 

String ‘appmod’ and ‘configname’ are taken from the AppModule as shown below

Image-300x104 Call ADF Application Module from servlet

4. Register the servlet class in your web.xml. That’s it.

 

 

pgn Call ADF Application Module from servlet

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
pgn Call ADF Application Module from servlet
By | 2016-08-30T20:10:51+00:00 August 4th, 2016|Categories: ADF|Tags: , , , |0 Comments
Like us on Facebook.
Connect!