• Like
  • Save

Sybase Unwired Platform- Data Change Notification

  • 1,544 views
Uploaded on

 

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
No Downloads

Views

Total Views
1,544
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
2
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. DATA CHANGE NOTIFICATION
  • 2. ObjectivesAfter completing this session, you should be able to: Describe the benefits and use of SUP Data Change Notification (DCN) feature Implement regular Data Change Notification Implement Data Change Notification for mobile workflow applications Understand the differences between Data Change Notification and Device Notifications© 2012 SAP AG. All rights reserved. 2
  • 3. Data Change Notification OverviewData Change Notification (DCN)An update mechanism that allows Unwired Server cache to be updated in real timeby EISMessages sent over HTTP or HTTPS in JSON formatIndependent of device synchronizationTypically used with a synchronization group Use the Change Detection Interval propertyPushA mechanism that allows Unwired Server to notify a device application of datachangesNotification protocol is dependent on device platform For iOS devices, Unwired Server uses APNS For BlackBerry devices, use the HTTP gateway push features of the MDS For other types, use Unwired Server Push Notification© 2012 SAP AG. All rights reserved. 3
  • 4. Types of DCNRegular DCN (DCN)Provides DCN to replication-based synchronization (RBS) and message-basedsynchronization (MBS) clientsWorkflow DCN (WF-DCN)Provides DCN to workflow clients by extending regular DCN for MBS clients© 2012 SAP AG. All rights reserved. 4
  • 5. RBS DCN Data Flow© 2012 SAP AG. All rights reserved. 5
  • 6. RBS DCN Data Flow1. EIS Update – a program or some other process updates data in EIS which is associated with a DCN2. HTTP(S) push – the EIS pushes a DCN message with a new or changed MBO data contained in the message on the configured HTTP(S) port3. DCN operation – the DCN service receives the message and performs the upsert to the CDB tables of the corresponding MBOs DCN upsert /delete operation also set the changed flag of an MBO package to true4. Unwired Server response – Unwired Server sends a response message back to the EIS that contains the status of each DCN in the submitted message5. Change detection – for a particular device that needs the new data, Unwired Server generates a message for the client indicating that it should synchronize6. Change Notification – the message is pushed from the Unwired Server to the device7. RBS synchronization – the client receives the message and issues a synchronization request to Unwired Server8. Synchronization – Unwired Server retrieves the new/updated data based on the client synchronization parameter and returns it to the client © 2012 SAP AG. All rights reserved. 6
  • 7. MBS DCN Data Flow© 2012 SAP AG. All rights reserved. 7
  • 8. MBS DCN Data Flow1. EIS update – a program or some other process updates data in the EIS which is associated with a DCN2. HTTP(S) push – the EIS pushes a DCN message with new or changed MBO data contained in the message on the configured HTTP(S) port3. DCN operation – (with payload) the DCN service receives the message and performs the upsert operation to the CDB tables of the corresponding MBOs. DCN upsert/delete operations also set the changed flag of an MBO package to true4. Unwired Server response – Unwired Server sends a response message back to the EIS that contains the status of each DCN in the submitted message5. change detection/synchronization triggered – for a particular device that needs the new data, Unwired Server generates a message for the client indicating that it should synchronize6. MBS push – the MBS message is pushed from Unwired Server to the device. When the client receives this message, it performs the corresponding create, update, or delete operation on the devices mobile database. © 2012 SAP AG. All rights reserved. 8
  • 9. DCN Without Payload© 2012 SAP AG. All rights reserved. 9
  • 10. DCN Without PayloadDCN without payload – calls MBO operations, where the name used in the DCNrequest matches that of the MBO definition1. The DCN requester sends an MBO operation execution request, along with operation parameters, to Unwired Server2. Unwired Server executes the operation, (effectively calling the EIS operation), and updates the cache database (CDB), if needed, depending on the operation’s cache policy3. Unwired Server returns a DCN status message to the requester © 2012 SAP AG. All rights reserved. 10
  • 11. DCN With Payload© 2012 SAP AG. All rights reserved. 11
  • 12. DCN With PayloadDCN with payload – calls only the two direct cache-affecting operations(:upsert or :delete), which always exists for an MBO, and are not related touser-defined MBO operations:upsert – the message must contain name/value pairs for every required attribute,and the name must exactly match the MBO attribute name:delete - provide only the name/value pairs for the primary key column(s)These operations respectively insert or update, or delete a row in the CDB.Calling either of these operations does not trigger any other refresh action.1. Some event initiates the DCN request (a data base trigger for example)2. The Unwired Server cache could be updated directly from the EIS, or the DCN request could originate from a source other than the EIS. The actual data (payload) is applied to the cache, through either an :upsert or a :delete operation3. Unwired Server returns a DCN status message to the requester© 2012 SAP AG. All rights reserved. 12
  • 13. Implementing Data Change NotificationAll DCN commands support both GET and POST methodsEIS developer creates and sends a DCN to Unwired Platform through HTTPGET or POST operationsHTTP POST is more secure than HTTP GETRecommended that you include the authenticate.password parameter in the POSTmethod, as well as any sensitive data provided for attributes and parametersYou can create and send DCNs that are based onDatabase triggersEIS system eventsExternal integration processes© 2012 SAP AG. All rights reserved. 13
  • 14. Example: DCN with PayloadRequires a JSON string (dcn_request) that contains one or more :upsert or:delete operations that are applied to the Unwired Server cache (CDB)Syntax:© 2012 SAP AG. All rights reserved. 14
  • 15. Example: DCN with PayloadUpsert Example:Delete Example© 2012 SAP AG. All rights reserved. 15
  • 16. © 2012 SAP AG. All rights reserved.No part of this publication may be reproduced or transmitted in any form or for any purpose Google App Engine, Google Apps, Google Checkout, Google Data API, Google Maps,without the express permission of SAP AG. The information contained herein may be Google Mobile Ads, Google Mobile Updater, Google Mobile, Google Store, Google Sync,changed without prior notice. Google Updater, Google Voice, Google Mail, Gmail, YouTube, Dalvik and Android are trademarks or registered trademarks of Google Inc.Some software products marketed by SAP AG and its distributors contain proprietarysoftware components of other software vendors. INTERMEC is a registered trademark of Intermec Technologies Corporation.Microsoft, Windows, Excel, Outlook, PowerPoint, Silverlight, and Visual Studio are Wi-Fi is a registered trademark of Wi-Fi Alliance.registered trademarks of Microsoft Corporation. Bluetooth is a registered trademark of Bluetooth SIG Inc.IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x,System z, System z10, z10, z/VM, z/OS, OS/390, zEnterprise, PowerVM, Power Motorola is a registered trademark of Motorola Trademark Holdings LLC.Architecture, Power Systems, POWER7, POWER6+, POWER6, POWER, PowerHA, Computop is a registered trademark of Computop Wirtschaftsinformatik GmbH.pureScale, PowerPC, BladeCenter, System Storage, Storwize, XIV, GPFS, HACMP,RETAIN, DB2 Connect, RACF, Redbooks, OS/2, AIX, Intelligent Miner, WebSphere, Tivoli, SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer,Informix, and Smarter Planet are trademarks or registered trademarks of IBM Corporation. StreamWork, SAP HANA, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in GermanyLinux is the registered trademark of Linus Torvalds in the United States and other countries. and other countries.Adobe, the Adobe logo, Acrobat, PostScript, and Reader are trademarks or registered Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystaltrademarks of Adobe Systems Incorporated in the United States and other countries. Decisions, Web Intelligence, Xcelsius, and other Business Objects products and servicesOracle and Java are registered trademarks of Oracle and its affiliates. mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company.UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other SybaseCitrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin products and services mentioned herein as well as their respective logos are trademarks orare trademarks or registered trademarks of Citrix Systems Inc. registered trademarks of Sybase Inc. Sybase is an SAP company.HTML, XML, XHTML, and W3C are trademarks or registered trademarks of W3C®, Crossgate, m@gic EDDY, B2B 360°, and B2B 360° Services are registered trademarksWorld Wide Web Consortium, Massachusetts Institute of Technology. of Crossgate AG in Germany and other countries. Crossgate is an SAP company.Apple, App Store, iBooks, iPad, iPhone, iPhoto, iPod, iTunes, Multi-Touch, Objective-C, All other product and service names mentioned are the trademarks of their respectiveRetina, Safari, Siri, and Xcode are trademarks or registered trademarks of Apple Inc. companies. Data contained in this document serves informational purposes only. National product specifications may vary.IOS is a registered trademark of Cisco Systems Inc. The information in this document is proprietary to SAP. No part of this document may beRIM, BlackBerry, BBM, BlackBerry Curve, BlackBerry Bold, BlackBerry Pearl, BlackBerry reproduced, copied, or transmitted in any form or for any purpose without the express priorTorch, BlackBerry Storm, BlackBerry Storm2, BlackBerry PlayBook, and BlackBerry App written permission of SAP AG.World are trademarks or registered trademarks of Research in Motion Limited. © 2012 SAP AG. All rights reserved. 16