Accessing remote databases from Oracle MAF with the TopLink/EclipseLink REST CRUD Services

In the last post I showed you how simple it is to expose CRUD REST operations on your database with TopLink/EclipseLink.

The next logical step is to then consume those with Oracle MAF to build a mobile application.

This is quite simple with the REST data control. All you need to do is just map the right URLs and create the operation.

Here is a quick demo:

One trick I show in the demo is how to delay the call to a REST service until the user actually provides a value to a parameter. A common issue people have when they have the parameter form and the results on the same page. The solution is easy using the refresh condition of the executables of the page and using the "ne null" check on the parameter value. 

Comments:

As an addition to Shay's demo: If you prefer using a JSON payload rather than XML, and/or you need offline and data sync capabilities you can use the A-Team mobile persistence extension to consume the TopLink/EclispeLink data services in MAF. See this article on A-Team chronicles:

http://www.ateam-oracle.com/a-team-mobile-persistence-extension-for-oracle-maf/

The functionality of this persistence extension will be merged into the core MAF product later this year.

Steven Davelaar.

Posted by guest on August 06, 2014 at 02:00 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

me
I'm a Director of Product Management for the Oracle Mobile and Development Tools.
Follow me:
Search

Archives
« September 2015
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today