33
Integrating Mobile apps with your Enterprise Jonathan Marshall [email protected] © 2014 IBM Corporation [email protected] @jmarshall1

Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Embed Size (px)

Citation preview

Page 1: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Integrating Mobile apps with your Enterprise

Jonathan [email protected]

© 2014 IBM Corporation

[email protected]@jmarshall1

Page 2: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Agenda

� Mobile apps and the enterprise

� Integrating mobile apps with Enterprise Applications

� Mobile apps and IBM Messaging

� Summary

© 2014 IBM Corporation2

Page 3: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Who’s in the audience?

© 2014 IBM Corporation3

Page 4: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Why enterprises are putting Mobile First

Mobile & Social

1b Smartphone users by 2016 75% of users act on location-based offers

© 2014 IBM Corporation4

1b Smartphone users by 2016

91% always keep mobile at arms reach

$534b Mobile transactions by 2015

95% of Mobile traffic is data by 2015

75% of users act on location-based offers

11,000 APIs on the Programmable Web

90% using combination of multiple devices

Page 5: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Or just consider the 2 recent Papal inaugurations…

© 2014 IBM Corporation5

Page 6: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Internet of Things

Mobile

Public CloudPrivate Cloud

Back-officeProcesses

Analytics

Un-integrated Mobile apps are not Engaging

Example: Customer uses Mobile app to interact with Airline

© 2014 IBM Corporation6

Social Web

Partners

Services Databases

CRM

� Can see my ticket

� Can find my seat

� Can see upgrade option

� Can check flight status

� Can see in-flight meal

� Can’t change my ticket

� Can’t move my seat

� Can’t buy upgrade

� Can’t change flight

� Can’t buy my choice of food

Page 7: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Systems of Interaction

� Able to innovate rapidly by combining new and existing capabilities

� Can pace the rate of change between future and prior investments

� Interacts as one with its clients across a diverse range of touch-points

Internet

Mobile

Public Private

Back-office Processes

© 2014 IBM Corporation7

Internet of Things

Public Cloud

Social Web

Partners

Private Cloud Analytics

Services Databases

CRM

Systems of Interaction

Page 8: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Introducing the Worklight Development lifecycle

Instrument

IntegrateObtain Insight

Design & Develop

© 2014 IBM Corporation8

Scan & Certify

TestManage

Deploy

Page 9: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Worklight ServerWorklight Server

Authentication

JSON Translation

Server-side

Application Code

Adapter Library

Client-side

App Resources

Unified Push

Notifications

Direct

Update

Mobile

Web Apps

Sta

ts A

gg

reg

ati

on

Platform Proprietary Notification

Backend Integration

IBM Worklight components

© 2014 IBM Corporation9

Device RuntimeDevice Runtime

• Security & Authentication

• Back-end Data Integration

• Post-deployment control

and Diagnostics

APNS or GCM

IBM Worklight Studio IBM Worklight Console

Applications are developed in HTML and JavascriptAdapters are developed in Javascript, and can use XSLT for transformation

Page 10: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Integrated Development Environment(Eclipse Plug-in)

Application development using native and/or familiar web technologies:• HTML5

IBM Worklight Studio

© 2014 IBM Corporation10

• HTML5• CSS3• JavaScript

Integrated device SDKs allow direct access from within the IDE to emulators and code debugging utilities

Page 11: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Common code placedin primary file

Environment optimization code is maintained separately

Single Shared Codebase

© 2014 IBM Corporation11

Page 12: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Preview in browser

© 2014 IBM Corporation12

Perform device specific tests in the Mobile Browser Simulator: supports Cordova and IBM Worklight client API

Page 13: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Agenda

� Mobile apps and the enterprise

� Integrating mobile apps with Enterprise Applications

� Mobile apps and IBM Messaging

� Summary

© 2014 IBM Corporation13

Page 14: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Worklight Demo – let’s do some integration

© 2014 IBM Corporation14

Page 15: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

� Adapters provide the glue between Worklight and back-end applications

– Provides the extensibility mechanism for Worklight to call out to back-end systems

� Adapters are invoked from mobile applications using HTTP/JSON

– This makes Worklight adapters easy to test using web browsers

� Worklight has built-in interfaces that adapters can use (HTTP, SQL and Cast Iron)

Worklight Adapters

© 2014 IBM Corporation1515

Iron)

– Worklight has client-side JavaScript APIs so that applications can invoke services

– Likewise, server-side JavaScript APIs are available to implement procedures (adapters)

Page 16: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Mobile Messaging

Worklight and integration with the enterprise

PackagedApplications

IntegrationServices

MobileServices

SecurityServices

DMZ

Analytics

GoogleGCM

AppleAPNS

Internet EnterpriseServices

CastIron

SMSGateway

MSWNS

Caching

© 2013 IBM Corporation16

IBMIntegration

Bus

DataServices

ApplicationServices

DevicesMobile

GatewayDataPower

WorklightServer

Analytics

MobileDeviceMgmt

Management Services

PEP <-> PDP

GooglePlay

Apple App

Store

APIMgmt

Page 17: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Mobile Messaging

How does the Worklight server fit into a mobile integration strategy?

Benefits� Optimise the amount of data for an

unstable, lower-bandwidth channel

� Optimise number of requests which otherwise increase latency over mobile network

� Manage rapidly changing app-

Challenges

�You’re writing code!!!

Delegate integration heavy-lifting to integration services, such as IBM Integration Bus:

© 2013 IBM Corporation17

specific services

� Productivity and agility

� Integrated security lifecycle

� App-specific server code (offload from client)

http://ibm.biz/WhyMobileMiddleware

IBM Integration Bus:• Legacy integration• Service virtualisation• Data and protocol transformation• Transactionality

Page 18: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

11 2

Choose: Select your

pattern

Configure:Accept default values or tailor

for your scenario

IIB Patterns are Inform mobile users

Mobile-enable your EnterpriseAccelerate access to enterprise applications, systems and data from mobile devices

© 2014 IBM Corporation18

4 3Write:

Use Worklightstudio – write

once, run anywhere

Integrate:Generate

Worklight adapter ready for

deployment

IIB Patterns are configurable templates for common integration

scenarios

Inform mobile users of key information

with push notifications

Realize secure and scalable access to backend services

with elastic caching

Page 19: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Worklight and integration with the enterprise

PackagedApplications

IntegrationServices

MobileServices

SecurityServices

DMZ

Analytics

GoogleGCM

AppleAPNS

Internet EnterpriseServices

CastIron

SMSGateway

MSWNS

Caching

© 2014 IBM Corporation19

IBMIntegration

Bus

DataServices

ApplicationServices

DevicesMobile

GatewayDataPower

WorklightServer

Analytics

MobileDeviceMgmt

Management Services

PEP <-> PDP

GooglePlay

Apple App

Store

APIMgmt

Mobile development IIB Patterns

Page 20: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

� Simple to configure – Drag and drop .NET assembly and enter Worklight adapter details

� Super quick – Pattern does all the hard work in less than a minute, generating…

– A Web service implementation

Pattern 1 - Expose a Microsoft .NET application as a mobile service

© 2014 IBM Corporation20

exposing desired operations

– An adapter ready for deployment to IBM Worklight Server

– A sample mobile application for easy testing

• Optimised for small screen mobile devices; easy to add extra environments for iOS, Android and many more!

Page 21: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

� As few as 2 Clicks!– Right-click on any enterprise service

(MQ, Database, Web service, CICS, IMS, etc…)

– Left-click to create mobile service with default options

� Pattern supports extra options…– Choose operations to be available to

mobile applications

Pattern 2 - Mobile enable ANY enterprise service

© 2014 IBM Corporation21

mobile applications

– Enable auditing of service requests

Page 22: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

© 2014 IBM Corporation22

Page 23: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

� Simple to enable mobile applications to Create, Read, Update and Deleteenterprise data

– Message Broker has excellent support for a wide range of enterprise applications (SAP, Siebel, JDEdwards, PeopleSoft etc…)

– Pattern generates Worklight adapter

Pattern 3 - Allow mobile apps controlled access to enterprise data

© 2014 IBM Corporation23

– Pattern generates Worklight adapter and stubs for implementing CRUD operations

� Quickly configure security policy to authorize and authenticate access via external LDAP provider

� One click to cache read resourcesin IBM WebSphere Extreme Scale

– High performing data access crucial for large volumes of mobile devices

Page 24: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

© 2014 IBM Corporation24

Page 25: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

� IBM Worklight supports asynchronous push notifications to mobile applications

– e.g. to deliver out of band messages such as special offers

� Pattern to rapidly enable enterprise services to send notifications

Pattern 4 - Push notification to mobile apps from within the enterprise

© 2014 IBM Corporation25

– e.g. MQ, SAP, Database, Medical system, etc…

– Generates Web service and Worklight adapter to deliver notifications to mobile applications

Page 26: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

© 2014 IBM Corporation26

Page 27: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Agenda

� Mobile apps and the enterprise

� Integrating mobile apps with Enterprise Applications

� Mobile apps and IBM Messaging

� Summary

© 2014 IBM Corporation27

Page 28: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Key challenges for Mobile apps

Volume (cost) of data being transmitted (especially in M2M with limited data plans)

Power consumption (battery powered devices)

© 2014 IBM Corporation28

Responsiveness (near-real time delivery of information)

Reliable delivery over fragile connections

Security and privacy

Scalability

Page 29: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Mobile message exchange patterns – beyond simple request/response

IBM MessagingIBM MessagingIBM MessagingIBM MessagingMQTT MQ

WorklightWorklightWorklightWorklight

Reliable asynchronous transactions

User submits a transaction. One or more responses may come back over time.

MQTT provides reliability and store/forward of requests and responses if needed – reducing the amount of application code

© 2014 IBM Corporation29

Continuous update of realtime information

Server-side data is “streamed” to the device and used to update the UI. In most cases this is only required when the app is in the foreground

Small MQTT header size reduces battery consumption and network traffic. One->manypublish/subscribe reduces load on application

Notification Sending alert or other informational message to the device. The app may or may not be running at the time.

Avoidance of polling reduces battery consumption and network traffic. Store/forward of important notifications if app/device is not contactable

Collection of data from device

Data sent to the server coming either from User Interface, of from onboard sensors or from devices attached to the phone

Small MQTT header size reduces battery consumption and network traffic. Store/forward of messages. One->many publish/subscribe

Page 30: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Internet

APP

APP

Service

ServiceDB APP DB

APP

DB

Apple iOS

JavaScriptersMessaging for Hybrid apps

Clients for Mobile and M2M Messaging•Including Simple Javascript Messaging API

New Messaging clients for Mobile apps

© 2014 IBM Corporation30

Internet

ESB and MQ messaging• Universal Enterprise Messaging• Provide access to enterprise apps and

data already connected by MQ• Pub/sub model to enable dynamic

distribution of notifications

Apple iOSMessaging for native iOS apps

AndroidMessaging for native Android apps

MQTT• Reliable messaging

protocol• Access to enterprise• Reliable delivery• Conserve device power• Reduce network traffic

Worklight developersDeveloper experience augmented with mobile messaging

Page 31: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Architecture – Worklight push notifications

GoogleGCM

AppleAPNS

Internet

SMSGateway

MPNS

2. Push to device(s) based on user name

© 2014 IBM Corporation31

IIBWorklightServer

1. Subscribe

3. App callback – wake app

Page 32: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Architecture – Worklight + MQTT push

GoogleGCM

AppleAPNS

Internet

SMSGateway

MPNS

© 2014 IBM Corporation32

MQTT endpoint

1. In-app subscribe/request

2. Publish/replyMQTT endpoints

include IBM MessageSight, and

WebSphere MQ

IIBWorklightServer

MQTT clients include JavaScript,

Android, iOS

Page 33: Integrating Mobile apps with your Enterprise - mqug.org.uk - CMA01 - Mobile... · Integrating Mobile apps with your Enterprise ... Analytics Un-integrated Mobile ... enterprise applications

Agenda

� Mobile apps and the enterprise

� Integrating mobile apps with Enterprise Applications

� Mobile apps and IBM Messaging

� Summary

© 2014 IBM Corporation33