SlideShare ist ein Scribd-Unternehmen logo
1 von 51
Ant Phillips and John Hosie
 WebSphere Message Broker




Service Enablement for Mobile Applications
Worklight / WebSphere Message Broker




                                             © 2012 IBM Corporation
Agenda


 Introduction to Worklight
 Worklight Adapters
 Message Broker Mobile Patterns
    – Mobile enablement for Microsoft .NET applications
    – Create flexible mobile services on top of Message Broker
    – Resource management including security and caching
    – Outbound push notifications for asynchronous data delivery




2                                                                  © 2012 IBM Corporation
Introduction to Worklight




                            © 2012 IBM Corporation
Worklight Overview




4                    © 2012 IBM Corporation
Worklight Architecture




5                        © 2012 IBM Corporation
Worklight Overview




6                    © 2012 IBM Corporation
Types of Mobile Application




7                             © 2012 IBM Corporation
Worklight Adapters




                     © 2012 IBM Corporation
Worklight Adapters


 Adapters provide the glue between Worklight and back-end applications
    – Provides the extensibility mechanism for Worklight to call out to back-end systems
 Worklight has two built-in interfaces that adapters can use (HTTP and SQL)
    – Worklight has client-side JavaScript APIs so that applications can invoke services
    – Likewise, server-side JavaScript APIs are available to implement procedures (adapters)




9                                                                                  © 2012 IBM Corporation
Worklight Adapters

 An adapter contains two files for configuration and implementation
     – The first file is XML and contains the overall metadata (procedure names, protocol etc)
     – Second file is JavaScript and contains one function (procedure) for each entry point

 Adapters are uploaded to Worklight Server ready for mobile applications
     – Once deployed, adapters are managed through the Worklight Console




10                                                                                   © 2012 IBM Corporation
Invoking Worklight adapters

 Adapters are invoked from mobile applications using HTTP/JSON
     – This convention makes Worklight adapters easy to test using web browsers
     – Client side applications use the XMLHttpRequest object for asynchronous calls
     – Mobile toolkits (JQuery, Dojo and Sencha) wrap this in a device independent layer




11                                                                                 © 2012 IBM Corporation
Worklight to Microsoft .NET




                              © 2012 IBM Corporation
Worklight to Microsoft .NET Service Enablement

 Creates a mobile-ready service around a Microsoft .NET application
     – Generates a web service implementation which is deployed to Message Broker
     – Builds a Worklight integration adapter and a sample mobile application
     – Inbound data from the mobile application is sent to Worklight as JSON/HTTP
     – The adapter converts the JSON data into/from SOAP/HTTP for the .NET web service




13                                                                             © 2012 IBM Corporation
Configuring the Pattern Instance

 Pattern is configured with Microsoft .NET and Worklight information
     – Server address is a key field as it is used to configure both ends of the connection!
     – Standard set of error handling and logging options are provided by the pattern
     – Adapter configured with the maximum number of concurrent (HTTP) connections
     – Once this limit is reached, Worklight will queue inbound requests from applications




14                                                                                     © 2012 IBM Corporation
Configuring the Microsoft .NET Assembly

 User-defined editor allows the pattern user to select their .NET assembly
     – Selection proceeds to a class and the (static) methods available in that class
     – Assembly can be developed in any .NET language (for example, VB.NET or C#)
     – Return value and parameters are reflected on and displayed by the user-defined editor




15                                                                                 © 2012 IBM Corporation
Generated Message Broker Projects


 The pattern generates an application and a library
     – Application contains the mechanics of the pattern instance
     – Library contains subflows for user customizations
     – Customizations are never deleted on re-generation!

 WSDL represents the selected .NET methods
     –   One WSDL operation for each .NET (static) method
     –   Likewise one message part defined per operation
     –   WSDL types are defined in a separate XML schema file
     –   WSDL and XSD are deployed directly to Message Broker




16                                                                  © 2012 IBM Corporation
Worklight Adapter

 Worklight adapter generated which reflects the web service methods
     – Integrates the mobile application with the Message Broker .NET web service
     – One procedure is generated for each operation (method) on the web service
     – Adapter manages the conversion between JSON and SOAP/XML data formats
     – Adapter generated in a separate project so it can be deployed to Worklight Server




17                                                                                  © 2012 IBM Corporation
Mobile Application

 Pattern also creates a mobile application to test the Worklight adapter
     – Each operation has views (pages) to configure and invoke the back-end service
     – Application is built using Dojo Mobile (ensures it is device independent)
     – More information on the Dojo mobile toolkit here: http://dojotoolkit.org/features/mobile




18                                                                                     © 2012 IBM Corporation
Mobile Application

 The mobile application has a single mobile web environment
     – Application is best suited for browsers on small screen mobile devices
     – Easy to add extra environments for iOS, Android and many more!

 Android development requires a separate download (Android SDK)
     – Pick and choose your target Android versions from Android SDK Manager




19                                                                              © 2012 IBM Corporation
Worklight Mobile Services




                            © 2012 IBM Corporation
Worklight Mobile Services

 Creates a mobile-ready interface around a Message Broker service
     – Services are a first class artifact in Message Broker alongside applications and libraries
     – Builds an adapter to integrate Worklight and Message Broker services
     – Inbound data from the mobile application is sent to Worklight as JSON/HTTP
– Makes it very simple to mobile enable a Message Broker service!
     – The adapter passes the inbound request straight through to the service
     – Pattern adds an HTTP/JSON message flow (binding) to the service project




21                                                                                     © 2012 IBM Corporation
Configuring the Pattern Instance






22                                 © 2012 IBM Corporation
Configuring the Pattern Instance

 The mobile service pattern can also be launched from the Navigator
     – Intuitive user experience for mobile enablement of Message Broker services
     – The selected service name is passed to the pattern as the launch configuration
     – Pattern instance is configured automatically and can be immediately generated




23                                                                                 © 2012 IBM Corporation
Worklight Adapter


 Generates a Worklight adapter which reflects the web service methods
     – Integrates the mobile application with the Message Broker web service
     – One procedure is generated for each selected operation in the service
     – Request-response and one-way interactions for the service are supported




24                                                                               © 2012 IBM Corporation
Worklight Push Notifications




                               © 2012 IBM Corporation
Worklight Push Notification Services


Worklight supports asynchronous push notifications to mobile applications
     – Push notifications have a measurable impact on the success of mobile applications
     – There are many IT challenges in supporting push notifications (devices, delivery etc)
–Push notifications are applicable across many industry verticals
     – Healthcare, retail, travel, transportation, government, insurance and more!
–All the major mobile platforms support push notification services
     – Apple iOS 3, Google Android 2.2, RIM Blackberry 5 and Windows Phone 7




26                                                                                   © 2012 IBM Corporation
Worklight Push Notification Services
 Users receive notifications when the mobile application is not active
     – Efficiency gain as application does not need to issue constant queries
     – Saves battery life and also reduces network bandwidth (communication fees)
– Notifications are not always appropriate and have disadvantages
     – Users need to subscribe on their device to receive push notifications
     – Notifications are limited in the size of their payload (for example, 256 bytes on iOS)
     – No quality of service is guaranteed and there is no delivery notification
     – No guarantee either that the end-to-end delivery chain is secure




27                                                                                     © 2012 IBM Corporation
Worklight Push Notification from WebSphere MQ

 Creates a push notification adapter from a WebSphere MQ queue
     – Generates a web service implementation which is deployed to Message Broker
     – Builds a Worklight integration adapter which polls for pending notifications
     – Pending notifications are written to a WebSphere MQ queue by a provider application
     – The adapter converts the notifications into JSON and arranges delivery to the mobile




28                                                                                 © 2012 IBM Corporation
Configuring the Pattern Instance

 Pattern is configured with Worklight and Message Broker information
     – Server address is a key field as it is used to configure both ends of the connection!
     – Standard set of error handling and logging options are provided by the pattern
– Application specific fields can be delivered in the push notification
     – Configured as part of the pattern instance so that an accurate schema can be created




29                                                                                     © 2012 IBM Corporation
Worklight Adapter

 Worklight adapter generated which periodically checks for notifications
     – Integrates Worklight with a queue of notifications managed by Message Broker
     – Generated pattern instance project includes a schema for the notification messages
     – Adapter manages the conversion from XML to JSON for the Worklight server-side calls
– Polling interval for pending notifications is configurable in the pattern
     – Adapter greedily processes all pending notifications each time it wakes up




30                                                                                  © 2012 IBM Corporation
Worklight Resource Handler




                             © 2012 IBM Corporation
Worklight Resource Handler

 Resource oriented architecture is a well known implementation pattern
     – Provides a common set of functions (CRUD – Create Read Update and Delete)
     – This pattern provides an adapter which implements CRUD operations
     – A Message Broker service is generated with subflows for each operation
     – The service integrates security authorization and authentication (LDAP)
     – Operations optionally integrate with the Message Broker Global Cache (WXS)




32                                                                             © 2012 IBM Corporation
Implementing Resource Handlers
 Complete the pattern instance by implementing the resource handlers
     – Subflows are generated for each CRUD operation in a customization project
     – Pattern generates a reference implementation of a back end system in ESQL

 Message Broker has excellent support for enterprise applications
     – Common design pattern to integrate with SAP, Siebel, JDEdwards and PeopleSoft
     – Wizards makes it easy to discover the application content (for example, SAP iDocs)
     – Rich SAP support includes iDocs, ALE, BAPI and query SAP tables (QISS)




33                                                                                 © 2012 IBM Corporation
WebSphere Extreme Scale (WXS)


 WebSphere Extreme Scale is tightly integrated with Message Broker
     – Provides a highly scalable, fault tolerant, elastic in-memory data grid
     – One or more execution groups manage a single logical cache of key-value data
     – WXS components are hosted within the execution group processes
     – Default scope is one cache per broker but this can be extended to multiple brokers
– Vital for mobile applications where the number of devices can be huge
     – Caching fits perfectly with a CRUD model of many readers and (generally) few writers
     – Message Broker activity log shows the cache activity as CRUD operations complete




34                                                                                  © 2012 IBM Corporation
Authorization and Authentication

 Patterns provides a security model based around LDAP
     – Caching fits perfectly with a CRUD model of many readers and (generally) few writers
     – Users are authenticated using HTTP basic authentication by the HTTP Input node
     – Authorization is then done by splitting the users into two groups (readers/writers)
     – A user is authorized if they are a member of the group in the LDAP directory
     – The LDAP queries are issued by the message flow using the Security PEP node
     – Caching changes are made through WXS after the user has cleared security




35                                                                                 © 2012 IBM Corporation
Summary




          © 2012 IBM Corporation
Service Enablement for Mobile Applications



 Message Broker provides a rich mobile experience
     – Worklight patterns makes this integration quick and simple
     – Mobile service enablement is compelling with Message Broker

 Both inbound and outbound scenarios are provided
     – Mobile enablement for Microsoft .NET applications
     – Create flexible mobile services on top of Message Broker
     – Resource management including security and caching
     – Outbound push notifications for asynchronous data delivery

 Patterns address time-to-value for your solutions
     – It takes just a few minutes to create a pattern!
     – Why not create a patterns community in your organisation?

 Tell us what you need in Message Broker – we really do listen



37                                                                   © 2012 IBM Corporation
38   © 2012 IBM Corporation
Message Broker
    Patterns




                 © 2012 IBM Corporation
The Challenge


From:
                       MQ




                WSDL


To:




40                          © 2012 IBM Corporation
Patterns for Simplified Development
      Creates top-down, parameterized connectivity solutions
      Reduces common problems in flow development
      Communicates best practices to the broker community
      Reduces time-to-value for solution development
      Complements regular solution development in broker




41                                                              © 2012 IBM Corporation
Built-In Patterns

 Message Broker provides a core set of built-in patterns
 These implement a variety of common scenarios
     –   Web service front end to a MQ based application
     –   Processing data stored in a file and routing to one or more queues
     –   Adding a proxy in front of a web service provider
     –   Processing data from an SAP system and routing to MQ
     –   Shredding messages and routing to one or more queues

 Patterns are selected based on client feedback and field experience
 This core set of patterns continues to grow with each release




42                                                                            © 2012 IBM Corporation
Message Broker
 Pattern Authoring




                     © 2012 IBM Corporation
Pattern Authoring


 Patterns becomes even more compelling when you can create your own!
     – Every organization has their own repeating connectivity patterns!
     – Pattern authoring is the name we give to this technology in Message Broker

 We recommend you start with a working solution
     – One or more Message Broker projects

 Pattern authoring is a design activity
     – It may be long lived
     – It is often not sequential

 Using patterns is a top-down activity driven by a requirement, but:
     – Authoring a working solution is (typically) a bottom-up activity
     – So pattern authoring bridges these two different approaches

 Patterns have their own development cycle
     – Pattern Authoring editor supports this design activity



44                                                                                  © 2012 IBM Corporation
Create Your Working Solution

 No change at all - design your Message Broker solution as you do today
     – Pattern authoring does not change the tools you use to create solutions
     – The key to a good pattern is to create a good working solution!




45                                                                               © 2012 IBM Corporation
Design Your Pattern
 Straightforward to create patterns using the Pattern Authoring editor!
     – Design the user interface which is presented to your pattern users
     – Easy to add branding - style sheets, images and other files as required




46                                                                               © 2012 IBM Corporation
Pattern Refinement

 Pattern authoring in Message Broker supports property changes
     – Node, user-defined properties (UDPs) and promoted node properties

 Property variability is the most common type of variability that a pattern
  might need to express - there are many others:
     – Generate application text files such as ESQL scripts
     – Make structural changes to Message Flows
     – Create administration files such as MQSC scripts

 It is impossible to try and predict all the possible extensions that a pattern
  author might wish to implement
 In Message Broker we provide two ways to extend pattern authoring
     – Java code that is invoked when pattern instances are generated
     – PHP templates that generate text files in pattern instance projects




47                                                                           © 2012 IBM Corporation
Message Broker
Pattern Communities




                      © 2012 IBM Corporation
Packaging a Pattern




49                    © 2012 IBM Corporation
Pattern Communities


 Pattern authoring creates patterns whose value multiplies as they are
  shared and used by a community of developers
 Public and private communities are equally interesting!
 A community needs to offer more than just a repository of assets!
     – Space for content such as patterns and subflow nodes
     – Forums to host discussions and threaded conversations
     – Categorisation is important as the community grows! (taxonomies)
     – Essential administrative functions such as user management
     – News articles and broadcasts keep the site fresh
 There are literally dozens of content management systems available
 On the commercial side we have tried Lotus Connections and
  Rational Asset Manager
 Open source projects such as Drupal and Joomla are compelling!


50                                                                        © 2012 IBM Corporation
Creating a Community Space




51                           © 2012 IBM Corporation

Weitere ähnliche Inhalte

Was ist angesagt?

Model Driven Architecture (MDA): Motivations, Status & Future
Model Driven Architecture (MDA): Motivations, Status & FutureModel Driven Architecture (MDA): Motivations, Status & Future
Model Driven Architecture (MDA): Motivations, Status & Future
elliando dias
 
IBM How to Develop Responsive Applications
IBM How to Develop Responsive ApplicationsIBM How to Develop Responsive Applications
IBM How to Develop Responsive Applications
IBM Systems UKI
 
X pages jumpstart jmp101
X pages jumpstart jmp101X pages jumpstart jmp101
X pages jumpstart jmp101
pdhannan
 
5 - Architetture Software - Metamodelling and the Model Driven Architecture
5 - Architetture Software - Metamodelling and the Model Driven Architecture5 - Architetture Software - Metamodelling and the Model Driven Architecture
5 - Architetture Software - Metamodelling and the Model Driven Architecture
Majong DevJfu
 
We4IT lcty 2013 - infra-man - whats new in ibm domino application development
We4IT lcty 2013 - infra-man - whats new in ibm domino application developmentWe4IT lcty 2013 - infra-man - whats new in ibm domino application development
We4IT lcty 2013 - infra-man - whats new in ibm domino application development
We4IT Group
 

Was ist angesagt? (15)

Social Enabler for XPages
Social Enabler for XPagesSocial Enabler for XPages
Social Enabler for XPages
 
MDA
MDAMDA
MDA
 
MQ Light for WTU
 MQ Light for WTU MQ Light for WTU
MQ Light for WTU
 
Model Driven Architecture (MDA): Motivations, Status & Future
Model Driven Architecture (MDA): Motivations, Status & FutureModel Driven Architecture (MDA): Motivations, Status & Future
Model Driven Architecture (MDA): Motivations, Status & Future
 
Extreme Versioning: Delivering Customized Documentation Via XML
Extreme Versioning: Delivering Customized Documentation Via XMLExtreme Versioning: Delivering Customized Documentation Via XML
Extreme Versioning: Delivering Customized Documentation Via XML
 
AD109 - Using the IBM Sametime Proxy SDK: WebSphere Portal, IBM Connections -...
AD109 - Using the IBM Sametime Proxy SDK: WebSphere Portal, IBM Connections -...AD109 - Using the IBM Sametime Proxy SDK: WebSphere Portal, IBM Connections -...
AD109 - Using the IBM Sametime Proxy SDK: WebSphere Portal, IBM Connections -...
 
MQLight for WebSphere Integration user group June 2014
MQLight for WebSphere Integration user group June 2014MQLight for WebSphere Integration user group June 2014
MQLight for WebSphere Integration user group June 2014
 
IBM How to Develop Responsive Applications
IBM How to Develop Responsive ApplicationsIBM How to Develop Responsive Applications
IBM How to Develop Responsive Applications
 
X pages jumpstart jmp101
X pages jumpstart jmp101X pages jumpstart jmp101
X pages jumpstart jmp101
 
AD201: IBM Domino Application Development Today And Tomorrow
AD201: IBM Domino Application Development Today And TomorrowAD201: IBM Domino Application Development Today And Tomorrow
AD201: IBM Domino Application Development Today And Tomorrow
 
How to develop responsive applications with ibm web sphere mq light
How to develop responsive applications with ibm web sphere mq lightHow to develop responsive applications with ibm web sphere mq light
How to develop responsive applications with ibm web sphere mq light
 
5 - Architetture Software - Metamodelling and the Model Driven Architecture
5 - Architetture Software - Metamodelling and the Model Driven Architecture5 - Architetture Software - Metamodelling and the Model Driven Architecture
5 - Architetture Software - Metamodelling and the Model Driven Architecture
 
We4IT lcty 2013 - infra-man - whats new in ibm domino application development
We4IT lcty 2013 - infra-man - whats new in ibm domino application developmentWe4IT lcty 2013 - infra-man - whats new in ibm domino application development
We4IT lcty 2013 - infra-man - whats new in ibm domino application development
 
01.egovFrame Training Book I
01.egovFrame Training Book I01.egovFrame Training Book I
01.egovFrame Training Book I
 
A dynamic application using jboss
A dynamic application using jbossA dynamic application using jboss
A dynamic application using jboss
 

Ähnlich wie Mobile Patterns with WebSphere Message Broker

2109 mobile cloud integrating your mobile workloads with the enterprise
2109 mobile cloud  integrating your mobile workloads with the enterprise2109 mobile cloud  integrating your mobile workloads with the enterprise
2109 mobile cloud integrating your mobile workloads with the enterprise
Todd Kaplinger
 
Introduction to WebSphere Message Broker
Introduction to WebSphere Message BrokerIntroduction to WebSphere Message Broker
Introduction to WebSphere Message Broker
Ant Phillips
 
11.universal mobile application development (umad) on home automation
11.universal mobile application development (umad) on home automation11.universal mobile application development (umad) on home automation
11.universal mobile application development (umad) on home automation
Alexander Decker
 

Ähnlich wie Mobile Patterns with WebSphere Message Broker (20)

Nordics IBM Mobile Foundation Integration in Action
Nordics IBM Mobile Foundation Integration in ActionNordics IBM Mobile Foundation Integration in Action
Nordics IBM Mobile Foundation Integration in Action
 
Messaging in the Cloud with IBM MQ Light and IBM Bluemix
Messaging in the Cloud with IBM MQ Light and IBM BluemixMessaging in the Cloud with IBM MQ Light and IBM Bluemix
Messaging in the Cloud with IBM MQ Light and IBM Bluemix
 
IBM Worklight Whitepaper
IBM Worklight WhitepaperIBM Worklight Whitepaper
IBM Worklight Whitepaper
 
2109 mobile cloud integrating your mobile workloads with the enterprise
2109 mobile cloud  integrating your mobile workloads with the enterprise2109 mobile cloud  integrating your mobile workloads with the enterprise
2109 mobile cloud integrating your mobile workloads with the enterprise
 
IBM Connect 2014 - KEY108: IBM Collaboration Solutions Application Developmen...
IBM Connect 2014 - KEY108: IBM Collaboration Solutions Application Developmen...IBM Connect 2014 - KEY108: IBM Collaboration Solutions Application Developmen...
IBM Connect 2014 - KEY108: IBM Collaboration Solutions Application Developmen...
 
Connect 2014 - Key108 - Application Development Strategy
Connect 2014 - Key108  - Application Development StrategyConnect 2014 - Key108  - Application Development Strategy
Connect 2014 - Key108 - Application Development Strategy
 
Introduction to WebSphere Message Broker
Introduction to WebSphere Message BrokerIntroduction to WebSphere Message Broker
Introduction to WebSphere Message Broker
 
Foundry Management System Desktop Application
Foundry Management System Desktop Application Foundry Management System Desktop Application
Foundry Management System Desktop Application
 
IBM Worklight
IBM WorklightIBM Worklight
IBM Worklight
 
IBM MessageSight for mobile and the internet of things
IBM MessageSight for mobile and the internet of thingsIBM MessageSight for mobile and the internet of things
IBM MessageSight for mobile and the internet of things
 
June 25 webcast adding mobile to power applications
June 25 webcast   adding mobile to power applicationsJune 25 webcast   adding mobile to power applications
June 25 webcast adding mobile to power applications
 
Mobile to Mainframe - En-to-end transformation
Mobile to Mainframe - En-to-end transformationMobile to Mainframe - En-to-end transformation
Mobile to Mainframe - En-to-end transformation
 
Worklight mobile v6
Worklight mobile v6 Worklight mobile v6
Worklight mobile v6
 
Soa architect summit mobile 2013_mar [compatibility mode]
Soa architect summit mobile 2013_mar [compatibility mode]Soa architect summit mobile 2013_mar [compatibility mode]
Soa architect summit mobile 2013_mar [compatibility mode]
 
Collaborative and agile development of mobile applications
Collaborative and agile development of mobile applicationsCollaborative and agile development of mobile applications
Collaborative and agile development of mobile applications
 
11.universal mobile application development (umad) on home automation
11.universal mobile application development (umad) on home automation11.universal mobile application development (umad) on home automation
11.universal mobile application development (umad) on home automation
 
IBM SmartCloud Orchestration
IBM SmartCloud OrchestrationIBM SmartCloud Orchestration
IBM SmartCloud Orchestration
 
WebSphere Message Broker Application Development Training
WebSphere Message Broker Application Development TrainingWebSphere Message Broker Application Development Training
WebSphere Message Broker Application Development Training
 
Social Applications made easy with the new Social Business Toolkit SDK
Social Applications made easy with the new Social Business Toolkit SDKSocial Applications made easy with the new Social Business Toolkit SDK
Social Applications made easy with the new Social Business Toolkit SDK
 
Whats new in IIB v9 + Open Beta v10 GSE
Whats new in IIB v9 + Open Beta v10 GSEWhats new in IIB v9 + Open Beta v10 GSE
Whats new in IIB v9 + Open Beta v10 GSE
 

Mehr von Ant Phillips (7)

Healthcare Standards for Connecting Clinical Applications
Healthcare Standards for Connecting Clinical ApplicationsHealthcare Standards for Connecting Clinical Applications
Healthcare Standards for Connecting Clinical Applications
 
Connecting Clinical Applications with WebSphere Message Broker
Connecting Clinical Applications with WebSphere Message BrokerConnecting Clinical Applications with WebSphere Message Broker
Connecting Clinical Applications with WebSphere Message Broker
 
HL7 DFDL with WebSphere Message Broker
HL7 DFDL with WebSphere Message BrokerHL7 DFDL with WebSphere Message Broker
HL7 DFDL with WebSphere Message Broker
 
Healthcare Analytics with WebSphere Message Broker
Healthcare Analytics with WebSphere Message BrokerHealthcare Analytics with WebSphere Message Broker
Healthcare Analytics with WebSphere Message Broker
 
Medical Imaging (DICOM) with WebSphere Message Broker
Medical Imaging (DICOM) with WebSphere Message BrokerMedical Imaging (DICOM) with WebSphere Message Broker
Medical Imaging (DICOM) with WebSphere Message Broker
 
Healthcare Integration with WebSphere Message Broker
Healthcare Integration with WebSphere Message BrokerHealthcare Integration with WebSphere Message Broker
Healthcare Integration with WebSphere Message Broker
 
An Overview of the Message Broker Healthcare Connectivity Pack
An Overview of the Message Broker Healthcare Connectivity PackAn Overview of the Message Broker Healthcare Connectivity Pack
An Overview of the Message Broker Healthcare Connectivity Pack
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Kürzlich hochgeladen (20)

Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 

Mobile Patterns with WebSphere Message Broker

  • 1. Ant Phillips and John Hosie WebSphere Message Broker Service Enablement for Mobile Applications Worklight / WebSphere Message Broker © 2012 IBM Corporation
  • 2. Agenda  Introduction to Worklight  Worklight Adapters  Message Broker Mobile Patterns – Mobile enablement for Microsoft .NET applications – Create flexible mobile services on top of Message Broker – Resource management including security and caching – Outbound push notifications for asynchronous data delivery 2 © 2012 IBM Corporation
  • 3. Introduction to Worklight © 2012 IBM Corporation
  • 4. Worklight Overview 4 © 2012 IBM Corporation
  • 5. Worklight Architecture 5 © 2012 IBM Corporation
  • 6. Worklight Overview 6 © 2012 IBM Corporation
  • 7. Types of Mobile Application 7 © 2012 IBM Corporation
  • 8. Worklight Adapters © 2012 IBM Corporation
  • 9. Worklight Adapters  Adapters provide the glue between Worklight and back-end applications – Provides the extensibility mechanism for Worklight to call out to back-end systems  Worklight has two built-in interfaces that adapters can use (HTTP and SQL) – Worklight has client-side JavaScript APIs so that applications can invoke services – Likewise, server-side JavaScript APIs are available to implement procedures (adapters) 9 © 2012 IBM Corporation
  • 10. Worklight Adapters  An adapter contains two files for configuration and implementation – The first file is XML and contains the overall metadata (procedure names, protocol etc) – Second file is JavaScript and contains one function (procedure) for each entry point  Adapters are uploaded to Worklight Server ready for mobile applications – Once deployed, adapters are managed through the Worklight Console 10 © 2012 IBM Corporation
  • 11. Invoking Worklight adapters  Adapters are invoked from mobile applications using HTTP/JSON – This convention makes Worklight adapters easy to test using web browsers – Client side applications use the XMLHttpRequest object for asynchronous calls – Mobile toolkits (JQuery, Dojo and Sencha) wrap this in a device independent layer 11 © 2012 IBM Corporation
  • 12. Worklight to Microsoft .NET © 2012 IBM Corporation
  • 13. Worklight to Microsoft .NET Service Enablement  Creates a mobile-ready service around a Microsoft .NET application – Generates a web service implementation which is deployed to Message Broker – Builds a Worklight integration adapter and a sample mobile application – Inbound data from the mobile application is sent to Worklight as JSON/HTTP – The adapter converts the JSON data into/from SOAP/HTTP for the .NET web service 13 © 2012 IBM Corporation
  • 14. Configuring the Pattern Instance  Pattern is configured with Microsoft .NET and Worklight information – Server address is a key field as it is used to configure both ends of the connection! – Standard set of error handling and logging options are provided by the pattern – Adapter configured with the maximum number of concurrent (HTTP) connections – Once this limit is reached, Worklight will queue inbound requests from applications 14 © 2012 IBM Corporation
  • 15. Configuring the Microsoft .NET Assembly  User-defined editor allows the pattern user to select their .NET assembly – Selection proceeds to a class and the (static) methods available in that class – Assembly can be developed in any .NET language (for example, VB.NET or C#) – Return value and parameters are reflected on and displayed by the user-defined editor 15 © 2012 IBM Corporation
  • 16. Generated Message Broker Projects  The pattern generates an application and a library – Application contains the mechanics of the pattern instance – Library contains subflows for user customizations – Customizations are never deleted on re-generation!  WSDL represents the selected .NET methods – One WSDL operation for each .NET (static) method – Likewise one message part defined per operation – WSDL types are defined in a separate XML schema file – WSDL and XSD are deployed directly to Message Broker 16 © 2012 IBM Corporation
  • 17. Worklight Adapter  Worklight adapter generated which reflects the web service methods – Integrates the mobile application with the Message Broker .NET web service – One procedure is generated for each operation (method) on the web service – Adapter manages the conversion between JSON and SOAP/XML data formats – Adapter generated in a separate project so it can be deployed to Worklight Server 17 © 2012 IBM Corporation
  • 18. Mobile Application  Pattern also creates a mobile application to test the Worklight adapter – Each operation has views (pages) to configure and invoke the back-end service – Application is built using Dojo Mobile (ensures it is device independent) – More information on the Dojo mobile toolkit here: http://dojotoolkit.org/features/mobile 18 © 2012 IBM Corporation
  • 19. Mobile Application  The mobile application has a single mobile web environment – Application is best suited for browsers on small screen mobile devices – Easy to add extra environments for iOS, Android and many more!  Android development requires a separate download (Android SDK) – Pick and choose your target Android versions from Android SDK Manager 19 © 2012 IBM Corporation
  • 20. Worklight Mobile Services © 2012 IBM Corporation
  • 21. Worklight Mobile Services  Creates a mobile-ready interface around a Message Broker service – Services are a first class artifact in Message Broker alongside applications and libraries – Builds an adapter to integrate Worklight and Message Broker services – Inbound data from the mobile application is sent to Worklight as JSON/HTTP – Makes it very simple to mobile enable a Message Broker service! – The adapter passes the inbound request straight through to the service – Pattern adds an HTTP/JSON message flow (binding) to the service project 21 © 2012 IBM Corporation
  • 22. Configuring the Pattern Instance  22 © 2012 IBM Corporation
  • 23. Configuring the Pattern Instance  The mobile service pattern can also be launched from the Navigator – Intuitive user experience for mobile enablement of Message Broker services – The selected service name is passed to the pattern as the launch configuration – Pattern instance is configured automatically and can be immediately generated 23 © 2012 IBM Corporation
  • 24. Worklight Adapter  Generates a Worklight adapter which reflects the web service methods – Integrates the mobile application with the Message Broker web service – One procedure is generated for each selected operation in the service – Request-response and one-way interactions for the service are supported 24 © 2012 IBM Corporation
  • 25. Worklight Push Notifications © 2012 IBM Corporation
  • 26. Worklight Push Notification Services Worklight supports asynchronous push notifications to mobile applications – Push notifications have a measurable impact on the success of mobile applications – There are many IT challenges in supporting push notifications (devices, delivery etc) –Push notifications are applicable across many industry verticals – Healthcare, retail, travel, transportation, government, insurance and more! –All the major mobile platforms support push notification services – Apple iOS 3, Google Android 2.2, RIM Blackberry 5 and Windows Phone 7 26 © 2012 IBM Corporation
  • 27. Worklight Push Notification Services  Users receive notifications when the mobile application is not active – Efficiency gain as application does not need to issue constant queries – Saves battery life and also reduces network bandwidth (communication fees) – Notifications are not always appropriate and have disadvantages – Users need to subscribe on their device to receive push notifications – Notifications are limited in the size of their payload (for example, 256 bytes on iOS) – No quality of service is guaranteed and there is no delivery notification – No guarantee either that the end-to-end delivery chain is secure 27 © 2012 IBM Corporation
  • 28. Worklight Push Notification from WebSphere MQ  Creates a push notification adapter from a WebSphere MQ queue – Generates a web service implementation which is deployed to Message Broker – Builds a Worklight integration adapter which polls for pending notifications – Pending notifications are written to a WebSphere MQ queue by a provider application – The adapter converts the notifications into JSON and arranges delivery to the mobile 28 © 2012 IBM Corporation
  • 29. Configuring the Pattern Instance  Pattern is configured with Worklight and Message Broker information – Server address is a key field as it is used to configure both ends of the connection! – Standard set of error handling and logging options are provided by the pattern – Application specific fields can be delivered in the push notification – Configured as part of the pattern instance so that an accurate schema can be created 29 © 2012 IBM Corporation
  • 30. Worklight Adapter  Worklight adapter generated which periodically checks for notifications – Integrates Worklight with a queue of notifications managed by Message Broker – Generated pattern instance project includes a schema for the notification messages – Adapter manages the conversion from XML to JSON for the Worklight server-side calls – Polling interval for pending notifications is configurable in the pattern – Adapter greedily processes all pending notifications each time it wakes up 30 © 2012 IBM Corporation
  • 31. Worklight Resource Handler © 2012 IBM Corporation
  • 32. Worklight Resource Handler  Resource oriented architecture is a well known implementation pattern – Provides a common set of functions (CRUD – Create Read Update and Delete) – This pattern provides an adapter which implements CRUD operations – A Message Broker service is generated with subflows for each operation – The service integrates security authorization and authentication (LDAP) – Operations optionally integrate with the Message Broker Global Cache (WXS) 32 © 2012 IBM Corporation
  • 33. Implementing Resource Handlers  Complete the pattern instance by implementing the resource handlers – Subflows are generated for each CRUD operation in a customization project – Pattern generates a reference implementation of a back end system in ESQL  Message Broker has excellent support for enterprise applications – Common design pattern to integrate with SAP, Siebel, JDEdwards and PeopleSoft – Wizards makes it easy to discover the application content (for example, SAP iDocs) – Rich SAP support includes iDocs, ALE, BAPI and query SAP tables (QISS) 33 © 2012 IBM Corporation
  • 34. WebSphere Extreme Scale (WXS)  WebSphere Extreme Scale is tightly integrated with Message Broker – Provides a highly scalable, fault tolerant, elastic in-memory data grid – One or more execution groups manage a single logical cache of key-value data – WXS components are hosted within the execution group processes – Default scope is one cache per broker but this can be extended to multiple brokers – Vital for mobile applications where the number of devices can be huge – Caching fits perfectly with a CRUD model of many readers and (generally) few writers – Message Broker activity log shows the cache activity as CRUD operations complete 34 © 2012 IBM Corporation
  • 35. Authorization and Authentication  Patterns provides a security model based around LDAP – Caching fits perfectly with a CRUD model of many readers and (generally) few writers – Users are authenticated using HTTP basic authentication by the HTTP Input node – Authorization is then done by splitting the users into two groups (readers/writers) – A user is authorized if they are a member of the group in the LDAP directory – The LDAP queries are issued by the message flow using the Security PEP node – Caching changes are made through WXS after the user has cleared security 35 © 2012 IBM Corporation
  • 36. Summary © 2012 IBM Corporation
  • 37. Service Enablement for Mobile Applications  Message Broker provides a rich mobile experience – Worklight patterns makes this integration quick and simple – Mobile service enablement is compelling with Message Broker  Both inbound and outbound scenarios are provided – Mobile enablement for Microsoft .NET applications – Create flexible mobile services on top of Message Broker – Resource management including security and caching – Outbound push notifications for asynchronous data delivery  Patterns address time-to-value for your solutions – It takes just a few minutes to create a pattern! – Why not create a patterns community in your organisation?  Tell us what you need in Message Broker – we really do listen 37 © 2012 IBM Corporation
  • 38. 38 © 2012 IBM Corporation
  • 39. Message Broker Patterns © 2012 IBM Corporation
  • 40. The Challenge From: MQ WSDL To: 40 © 2012 IBM Corporation
  • 41. Patterns for Simplified Development  Creates top-down, parameterized connectivity solutions  Reduces common problems in flow development  Communicates best practices to the broker community  Reduces time-to-value for solution development  Complements regular solution development in broker 41 © 2012 IBM Corporation
  • 42. Built-In Patterns  Message Broker provides a core set of built-in patterns  These implement a variety of common scenarios – Web service front end to a MQ based application – Processing data stored in a file and routing to one or more queues – Adding a proxy in front of a web service provider – Processing data from an SAP system and routing to MQ – Shredding messages and routing to one or more queues  Patterns are selected based on client feedback and field experience  This core set of patterns continues to grow with each release 42 © 2012 IBM Corporation
  • 43. Message Broker Pattern Authoring © 2012 IBM Corporation
  • 44. Pattern Authoring  Patterns becomes even more compelling when you can create your own! – Every organization has their own repeating connectivity patterns! – Pattern authoring is the name we give to this technology in Message Broker  We recommend you start with a working solution – One or more Message Broker projects  Pattern authoring is a design activity – It may be long lived – It is often not sequential  Using patterns is a top-down activity driven by a requirement, but: – Authoring a working solution is (typically) a bottom-up activity – So pattern authoring bridges these two different approaches  Patterns have their own development cycle – Pattern Authoring editor supports this design activity 44 © 2012 IBM Corporation
  • 45. Create Your Working Solution  No change at all - design your Message Broker solution as you do today – Pattern authoring does not change the tools you use to create solutions – The key to a good pattern is to create a good working solution! 45 © 2012 IBM Corporation
  • 46. Design Your Pattern  Straightforward to create patterns using the Pattern Authoring editor! – Design the user interface which is presented to your pattern users – Easy to add branding - style sheets, images and other files as required 46 © 2012 IBM Corporation
  • 47. Pattern Refinement  Pattern authoring in Message Broker supports property changes – Node, user-defined properties (UDPs) and promoted node properties  Property variability is the most common type of variability that a pattern might need to express - there are many others: – Generate application text files such as ESQL scripts – Make structural changes to Message Flows – Create administration files such as MQSC scripts  It is impossible to try and predict all the possible extensions that a pattern author might wish to implement  In Message Broker we provide two ways to extend pattern authoring – Java code that is invoked when pattern instances are generated – PHP templates that generate text files in pattern instance projects 47 © 2012 IBM Corporation
  • 48. Message Broker Pattern Communities © 2012 IBM Corporation
  • 49. Packaging a Pattern 49 © 2012 IBM Corporation
  • 50. Pattern Communities  Pattern authoring creates patterns whose value multiplies as they are shared and used by a community of developers  Public and private communities are equally interesting!  A community needs to offer more than just a repository of assets! – Space for content such as patterns and subflow nodes – Forums to host discussions and threaded conversations – Categorisation is important as the community grows! (taxonomies) – Essential administrative functions such as user management – News articles and broadcasts keep the site fresh  There are literally dozens of content management systems available  On the commercial side we have tried Lotus Connections and Rational Asset Manager  Open source projects such as Drupal and Joomla are compelling! 50 © 2012 IBM Corporation
  • 51. Creating a Community Space 51 © 2012 IBM Corporation