Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

Getting Started

Steven Davelaar edited this page Mar 31, 2016 · 8 revisions

The best way to get started is to do the tutorial, look at the video, and to study and run the sample applications. The comprehensive Developer's Guide can then be used to obtain more information on a specific topic.

##Tutorial The tutorial Consuming REST web services with A-Team Mobile Persistence Accelerator for Oracle MAF takes you through all the basic steps. It teaches you how to install the extension, how to build a JSON-REST service, and how to build a MAF application using AMPA that consumes this REST service.

##Video Building Oracle MAF Application with Offline Sync against Oracle Mobile Cloud Service: This video demonstrates how to generate a fully functional MAF application that reads and writes data using REST services exposed by Oracle Mobile Cloud Service (MCS). All data retrieved through the REST calls is stored locally on the device in the SQLite database, allowing you to use the application in offline mode. The video also demonstrates the data synchronization functionality that is provided to process transactions made in offline mode.

##Sample Applications

  • HrDemoRest.zip: This is a JEE application that uses JPA persistence and TopLink data services to expose CRUD functionality on departments and employees as RESTful web services. To use this application, unzip the HrDemoRest zip file, open the HrDemoRest.jws in JDeveloper 12.3.1 and modify the connection details in persistence.xml as needed to connect to your local HR schema. Deploy the application by selecting the ViewController project node, right-mouse click and choose Deploy. To test whether the deployment is successful, enter following URL in your browser:

    http://host:port/HrDemoRest/persistence/v1.0/Model1/query/Department.findAll

  • HrCrudMobile.zip: This zip contains the finished MAF application that uses the above HrDemoRest applications as remote persistence providers. After unzipping, open HrCrudMobile.jws in JDeveloper 12.2.1 to view and deploy the application to a simulator or real device. Make sure you change the IP addresses in connections.xml before you run the sample. The application is generated with the User Interface Generator that comes with AMPA and has not been modified afterwards. In other words, the demo is meant to showcase the core functionality of AMPA, the user interface is not fancy.

##Getting Help First, we need to make clear that AMPA currently is an open source framework, so its not covered under Oracle Support Policy. Based on that the code is provided as is and allows you to extend and use it under the Open Source License Agreement. You can raise your issues or ask questions at the Oracle MAF discussion forum, A-Team is monitoring this forum for AMPA questions on an almost daily basis.

AMPA will be productized and included in Oracle MAF as the Client Data Model (CDM). CDM will be fully supported by Oracle Support as part of Oracle MAF. The MAF release that includes CDM is expected later this calendar year (2016).

Clone this wiki locally