Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Similar documents
Copyright 2014, Oracle and/or its affiliates. All rights reserved.

Take Your Oracle Forms on the Road Using ADF Mobile. Mia Urman, OraPlayer & Denis Tyrell, Oracle Corporation

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

ADF Mobile : Data Services Java Beans. Ma Ping

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

Real Life ADF Mobile. 10 things that you don't get from the developer guide

Copyright 2014, Oracle and/or its affiliates. All rights reserved.

ADF Mobile Code Corner

1Z0-441

ADF Mobile Code Corner

Oracle Developer Day

Developing Cross Device Mobile Applications

JAVA COURSES. Empowering Innovation. DN InfoTech Pvt. Ltd. H-151, Sector 63, Noida, UP

Oracle Mobile Application Framework

Connect and Transform Your Digital Business with IBM

Oracle Developer Day

Develop Mobile Front Ends Using Mobile Application Framework A - 2

Strategies for Running Oracle Forms from Mobile Devices and Tablets.

IBM. IBM Business Process Manager Express or Standard Edition V8.0 BPM Application Development

Oracle Exam 1z0-441 Oracle Mobile Development 2015 Essentials Version: 6.0 [ Total Questions: 85 ]

We are ready to serve Latest Testing Trends, Are you ready to learn? New Batch Details

Introduction to Worklight Integration IBM Corporation

Architecting C++ apps

Active Endpoints. ActiveVOS Platform Architecture Active Endpoints

Build Mobile Cloud Apps Effectively Using Oracle Mobile Cloud Services (MCS)

/ / JAVA TRAINING

CO Java EE 6: Develop Web Services with JAX-WS & JAX-RS

Oracle ADF: The technology behind project fusion. Lynn Munsinger Principal Product Manager Application Development Tools Oracle Corporation

Call: JSP Spring Hibernate Webservice Course Content:35-40hours Course Outline

TECHNICAL NOTE HOW TO USE WEB SERVICES. Document: Kalipso_TechDocs_Web_Services. Revision: 1.0. Kalipso version:

User s Guide 12c (12.2.1)

Oracle Corporation

ADF Code Corner. 70. How-to build dependent list boxes with Web Services Business Services. Abstract: twitter.com/adfcodecorner

Web Services in Cincom VisualWorks. WHITE PAPER Cincom In-depth Analysis and Review

Java Database Connectivity (JDBC) 25.1 What is JDBC?

Build Mobile Apps for Oracle E-Business Suite with Oracle Mobile Platform Part 2

The SOAPbox User s Guide

Oracle Developer Day

Chapter 2 Introduction

CSC System Development with Java. Database Connection. Department of Statistics and Computer Science. Budditha Hettige

Oracle - Developing Applications for the Java EE 7 Platform Ed 1 (Training On Demand)

Connecting Enterprise Systems to WebSphere Application Server

Creating a REST API which exposes an existing SOAP Service with IBM API Management

1Z Oracle. Java Platform Enterprise Edition 6 Web Services Developer Certified Expert

What's New in ActiveVOS 7.1 Includes ActiveVOS 7.1.1

Pick A Winner! In What Tool Should I Develop My Next App?

Creating a REST API which exposes an existing SOAP Service with IBM API Management

BEAAquaLogic. Service Bus. Interoperability With EJB Transport

The Backend of OE Mobile in OpenEdge Mike Fechner, Consultingwerk Ltd. PUG Challenge Americas, June 2013

Fast Track to Java EE

Oracle Fusion Middleware 11g: Build Applications with ADF I

J2EE Development. Course Detail: Audience. Duration. Course Abstract. Course Objectives. Course Topics. Class Format.

Oracle Retail Accelerators for WebLogic Server 11g

Appendix C WORKSHOP. SYS-ED/ Computer Education Techniques, Inc.

Apps Exception Problem Building Schema Jdeveloper

Java SE7 Fundamentals

SNS COLLEGE OF ENGINEERING, Coimbatore

Writing Servlets and JSPs p. 1 Writing a Servlet p. 1 Writing a JSP p. 7 Compiling a Servlet p. 10 Packaging Servlets and JSPs p.

Table of Contents. Introduction... xxi

Mobile Application Development: Introducing ADF Mobile Native Client Framework

Java Training Center, Noida - Java Expert Program

BEAAquaLogic. Service Bus. JPD Transport User Guide

JBoss SOAP Web Services User Guide. Version: M5

Different color bars chart with Popup Box in ADF

Complete Java Contents

1Z Oracle SOA Suite 12c Essentials Exam Summary Syllabus Questions

Jitterbit is comprised of two components: Jitterbit Integration Environment

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline

UNIT III - JDBC Two Marks

Non-interactive SQL. EECS Introduction to Database Management Systems

Unit 3 - Java Data Base Connectivity

Spring & Hibernate. Knowledge of database. And basic Knowledge of web application development. Module 1: Spring Basics

Courses For Event Java Advanced Summer Training 2018

Oracle Fusion Middleware 11g: Build Applications with ADF Accel

How to Integrate SAP xmii Services with Web Dynpro Java

Bridging the Gap. Peter Ebell AMIS

Mail: Web: juergen-schuster-it.de

Oracle Fusion Middleware

Web Service Elements. Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 10.0(1) 1

Copyright 2012, Oracle and/or its affiliates. All rights reserved.

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Programming in Java

PS/2 Web Services

Oracle Fusion Middleware 11g: Build Applications with ADF I

Schema Validation Errors While Parsing Weblogic

SUN. Java Platform Enterprise Edition 6 Web Services Developer Certified Professional

Oracle Enterprise Pack for Eclipse

Revised: 08/02/ Click the Start button at bottom left, enter Server Manager in the search box, and select it in the list to open it.

Improve and Expand JavaServer Faces Technology with JBoss Seam

Java- EE Web Application Development with Enterprise JavaBeans and Web Services

Android Online Training

Android Syllabus. Android. Android Overview and History How it all get started. Why Android is different.

Wentworth Institute of Technology COMP570 Database Applications Fall 2014 Derbinsky. SQL Programming. Lecture 8. SQL Programming

3 Connecting to Applications

<Insert Picture Here>

Oracle Database Mobile Server, Version 12.2

The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into

it is

Build a Mobile App in 60 Minutes with MAF

VanillaCore Walkthrough Part 1. Introduction to Database Systems DataLab CS, NTHU

Transcription:

1

ADF Mobile The Data Layer 2

Mobile Device Device Services ADF Mobile Architecture Device Native Container HTML5 & JavaScript Presentation Phone Gap Native View ADF Mobile XML View ADF Controller Local HTML Java VM ADF Model Java Business Logic Web View Server HTML App Config Encrypted SQLite DB Credential Management, SSO & Access Control Configuration Server Oracle IDM Oracle IAM Third Party Web Sites Server or Cloud backend SOAP & REST Web Services Servers 3

Back-end Data Service Scenarios Online Read/Write Needs to be continuously connected. No sync required Cached Reads, Online Write Caches data as it is accessed. Updates are via direct web service calls. No sync required Cached Reads, Offline Writes Caches data as it is accessed. Requires offline writes be saved locally as transactions and uploaded/replayed at the server Full Synchronization All data is synchronized to the device. Offline writes saved locally as transactions and uploaded/replayed at the server 4

Data Sources for ADF Mobile Applications Remote - Web service SOAP REST XML REST JSON Local Java Classes SQLite DB 5

ADF Mobile Web Services Backend SOAP Created using the Web Service Data Control wizard - Must specify a WSDL file Allows declarative invocation of WS methods REST-XML Created using the URL Data Control wizard - Must specify an XSD Allows declarative invocation of WS methods REST-JSON Connection created using the URL Data Control wizard Must be invoked programmatically and results parsed by the developer restserviceadapter and JSON parsers classes provided as a helper utilities 6

ADF Mobile Local Data Service Object Java class for CRUD operations Wrapped with a Data Control interface Returns arrays of Data Objects in the get methods Should not access bindings on a page Data Object Java class to hold attributes of an object Represents a single row of a collection Can contain sub-collections of other Data Objects for form complex object hierarchies Should not access bindings on a page 7

Data Control Data Control AMX Service Object Architecture Java VM ADF Model Service Object Data Object JDBC Encrypted SQLite DB restserviceadapter AdfmfJavaUtilities invokedatacontrolmethod REST-JSON SOAP/REST-XML SOAP/REST-XML Web Services 8

ADF Mobile Data Controls Declarative Binding Data abstraction layer Contains all references to data objects for the project Allows easy drag & drop binding of data Controls to UI Can represent Java Beans and SOAP/REST Web Services Managed in datacontrols.dcx file 9

Data Control Data Control Data Control AMX Architecture Web View Java VM Page Definition ADF Model AMX Page Bindings Service Object Data Object Data EL Bindings Web Services Device Feature s Bindings Device and Application Services Data Event EL Managed Beans Backing Beans 10

SOAP Web Service Data Control Declarative Creation 11

XML REST Services Create URL data control Enter authentication details for a secured REST service Select a HTTP method (Get/Post/Delete) for the REST service Specify the path to the complete URL and parameters in the source field Import/Point to an XSD as needed 12

JSON REST Service Create a URL Connection that points to the JSON data host This URL should be based on the root of all JSON services For example, for a JSON service that returns employees and departments (http://server:port/service/employees and http://server:port/service/departments), the URL Data Control should point to http://server:port/service/. Use RestServiceAdaptor to invoke service 13

RestServiceAdaptor Example public void loaddata() { RestServiceAdapter restserviceadapter = Model.createRestServiceAdapter(); restserviceadapter.clearrequestproperties(); restserviceadapter.setconnectionname("geoip"); restserviceadapter.setrequesttype(restserviceadapter.request_type_get); restserviceadapter.setretrylimit(0); restserviceadapter.setrequesturi("/json/" + getsearchip()); setjsonresponse(""); try { setjsonresponse(restserviceadapter.send("")); RESTJSONResponse res = new RESTJSONResponse(); res = (RESTJSONResponse)JSONBeanSerializationHelper.fromJSON(RESTJSONResponse.class, getjs setresponse(res); } catch (Exception e) { e.printstacktrace(); } } 14

Storing Data - SQLite Designed for use as an embedded database system Typically used by a single user Embedded within the application itself It is contained in a small library optimized for mobile SQLite libraries and JDBC drivers are embedded in ADF Mobile container Encryption for the SQLite Database File is provided with ADF Mobile 15

Initialize the Database LifeCycleListenerImpl.java call Start() Application starts up Note: Need to add LifeCycleListenerImpl.java to the LifeCycleEvent Listener Field of the adfmf-application.xml file. Start() 1. Creates Connection 2. Connects 3. Creates the DB 4. Populates DB 16

Access Local SQLite Data Simple Java Classes Use JDBC Exposed as Data Controls 17

JDBC Example Get Departments public void retrivedepartments() { try { Connection conn = DBConnectionFactory.getConnection(); s_departments.clear(); conn.setautocommit(false); PreparedStatement stat = conn.preparestatement("select * from DEPARTMENTS"); ResultSet rs = stat.executequery(); while (rs.next()) { int id = rs.getint("department_id"); String deptname = rs.getstring("department_name"); int mgrid = rs.getint("manager_id"); int locid = rs.getint("location_id"); Department d = new Department(id, deptname, mgrid, locid); s_departments.add(d); } rs.close(); 18

PRODUCT DEMONSTRATION Working with data sources 19

Summary Access remote data through Web services Data controls simplify data access Declarative or programmatic approach Local data accessed using Java Local data storage with SQLite 20

21