Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

End-to-End Cloud: Oracle Java Cloud, Oracle Mobile Cloud Service, Oracle MAF, and Oracle JET

OOW'16 session

  • Be the first to comment

End-to-End Cloud: Oracle Java Cloud, Oracle Mobile Cloud Service, Oracle MAF, and Oracle JET

  1. 1. 1 End-to-End Cloud: JCS, MCS, MAF and JET Andrejus Baranovskis, Oracle ACE Director, Red Samurai Consulting
  2. 2. 2About Us Oracle Experts Team • Oracle Fusion Middleware Partner Community Award for Outstanding ACM/BPM Contribution 2015 • Oracle Fusion Middleware Innovation Award Winner 2010 • SOA Partner Community Award for Outstanding Contribution Across the World 2010 • 2010 Enterprise 2.0 Blazer: Enterprise 2.0 Leader Award ADF, JET, MAF, Cloud, BPM, ACM, SOA, WebCenter, WebLogic
  3. 3. 3 Demo Demo Demo Application Container Cloud QuestionsUse Case Overview Mobile Application Framework ADF BC REST and Java Cloud Service Agenda Mobile Cloud Service JavaScript Extension Toolkit
  4. 4. 4 USE CASE OVERVIEW Oracle Cloud Services for Warehouse.
  5. 5. 5ChB Jelly House Startup Candy Company Supply manager is responsible to request warehouse stock update. Gets notification when stock goes below minimum threshold Stock Supply Production manager is responsible to log warehouse stock usage. Production Producing and selling natural jelly candies. Production process requires warehouse stock shortage tracking. Based in Lithuania, EU. About
  6. 6. 6Application Flow Warehouse Process Use Stock 01 Threshold 02 Notification 03 Order Stock 04 Production takes stock. JET application calls MCS REST service to log stock usage. JET/MAF & MCS/ACC Stock is below threshold. MCS checks condition and sends notification. MCS MCS sends notification. Manager receives notification, data is synchronized. JET/MAF & MCS Order stock by calling MCS REST service. Third party invoice data is updated through ADF BC REST on JCS JET/MAF & MCS/JCS/ACC
  7. 7. 7Technology Used Oracle Cloud and Development Tools 01 JCS 02 MCS 03 ACC Handling REST services for mobile interface. API Node.js implementation. MCS DB. Mobile Running JET Web app, OAuth security, reuse of MCS REST services. Web app Integrating with third party HR DB and invoice data. ADF BC REST Accessing MCS REST services through mobile. Deployed to device. Same code as JET. Mobile access 05 JET Hybrid Alternative mobile access, depends on company skillset. Mobile access 06 MAF Accessing MCS REST services through Web. Web access 04 JET
  8. 8. 8Cloud Services Interaction Flow Use Case Explanation DbaaS JCS A D F B C R E S T R E S T C O N N E C T O R MCS R E S T E N D P O I N TSECURITY Token Security API Node.js DB Connector Notifications Storage Location Google/A pple OAuth OAuth JET JET Hybrid or MAF
  9. 9. 9JET Interface Running on ACC (Application Container Cloud) User responsible for candy production logs stock usage. JET application. CANDY PRODUCTION
  10. 10. 10JET Hybrid Interface Application running on mobile device Secured by OAuth and MCS Backend. Can be secured by custom secure token. Security Consumes MCS REST services and subscribes to notifications raised by MCS custom API. REST Services and Notifications JET Hybrid is JET application wrapped into Cordova and deployed to mobile device. Cordova User responsible for candy stock supply updates stock numbers. CANDY STOCK SUPPLY
  11. 11. 11 USE CASE DEMO Oracle Cloud Services for Warehouse.
  12. 12. 12 ADF BC REST & JCS Backend Data Management and Java Cloud Service.
  13. 13. 13DbaaS Configuration Database Cloud Accessible by public IP. Provides DB admin tools. DB CLOUD MACHINE ACCESS Provides automatic backup. DB backup option is required for WebLogic 12.2.1 Cloud instance configuration. BACKUP
  14. 14. 14DbaaS Backup Cloud Storage Container – REST API curl -i -X GET -H "X-Storage-User:" -H "X-Storage-Pass: *Password*" HTTP/1.1 200 OK date: 1472150723577 X-Auth-Token: AUTH_tkf83371940961d6a9b1776819e71440d1 X-Storage-Token: AUTH_tkf83371940961d6a9b1776819e71440d1 X-Storage-Url: 1. AUTHENTICATION TOKEN curl -i -X PUT -H "X-Auth-Token: AUTH_tkf83371940961d6a9b1776819e71440d1" curl -i -X PUT -H "X-Auth-Token: AUTH_tkf83371360961d6a9b17f9819e71440d1" 2. CREATE STORAGE CONTAINER
  15. 15. 15JCS Configuration Java Cloud Can be created in Enterprise Manager Fusion Middleware Control 12c JDBC DATA SOURCE Accessible by public IP PUBLIC IP Use cloud storage container to configure WLS backup. BACKUP
  16. 16. 16ADF BC REST Development
  17. 17. 17ADF BC REST ADF Security – token authentication & authorization
  18. 18. 18ADF BC REST Deployment on JCS Frank Nimphius, Oracle PM – “Keep in mind that businesses don't start from scratch when a new technology or a new trend arrives. ADF BC REST is (in my opinion) the easiest and most effective option for creating powerful and flexible REST services based on SQL queries” ADF 12.2.1 BC REST
  19. 19. 19 MOBILE CLOUD SERVICE Mobile Data.
  20. 20. 20Mobile Cloud Service Overview
  21. 21. 21Connectors ADF BC REST Configuration
  22. 22. 22Connectors Rules and Security Tokens
  23. 23. 23Connectors Node.js and custom API
  24. 24. 24Connectors Simplifies REST Calls for Mobile Clients
  25. 25. 25Custom API Mobile Logic
  26. 26. 26Custom API REST Endpoints
  27. 27. 27Custom API REST Endpoints
  28. 28. 28Custom API Security
  29. 29. 29Custom API Security
  30. 30. 30Custom API Implementation with Node.js
  31. 31. 31Custom API Implementation with Node.js
  33. 33. 33Custom API MCS Connector API
  34. 34. 34Custom API MCS Notification API
  35. 35. 35Mobile Backend Diagnostics
  36. 36. 36Mobile Backend Log from Custom API – Useful for Debugging
  37. 37. 37Mobile Backend Cross-origin Resource Sharing (CORS) Configuration
  38. 38. 38 JET JavaScript Extension Toolkit.
  39. 39. 39JET Focus Areas 02 01 03 04 MCS OAuth Instructions to use MCS OAuth in JET. MCS REST Instructions to consume MCS REST services in JET. MCS Notifications Instructions to register and receive MCS notifications in JET. JET and JET Hybrid Implementation principles. JavaScript and HTML is reused in JET and JET Hybrid.
  40. 40. 40Create JET Hybrid Application Mobile Application As Easy As 1, 2, 3 npm -g install cordova This should be done first time only. npm is the default package manager for the JavaScript runtime environment Node.js INSTALL CORDOVA yo oraclejet:hybrid redsamuraiwarehouse --appId=com.warehouse --appName="redsamuraiwarehouse" --template=navbar --platforms=android Yeoman runs as a command-line interface written for Node.js and which combines generating a starter template, managing dependencies CREATE JET HYBRID APPLICATION grunt build --platform=android Grunt is a JavaScript task runner BUILD grunt serve --platform=android --browser --disableLiveReload=true RUN IN BROWSER grunt serve --platform=android --destination=device RUN ON DEVICE AS APPLICATION
  41. 41. 41JET Hybrid Application Application Structure
  42. 42. 42JET Implementation Index Page – Dynamic Blocks
  43. 43. 43JET Implementation Application Controller – Defines Router and Modules
  44. 44. 44JET Implementation Chart – HTML and JS
  45. 45. 45JET Implementation Gauge – HTML and JS
  46. 46. 46JET Security Mobile Cloud Service OAuth Integration – Download MCS SDK
  47. 47. 47JET Security Mobile Cloud Service OAuth Integration – Backend Wrapper and Keys
  48. 48. 48JET Security Mobile Cloud Service OAuth Integration – Login
  49. 49. 49JET Security Mobile Cloud Service OAuth Integration – Login
  50. 50. 50JET Security Mobile Cloud Service OAuth Integration – Network Monitor
  51. 51. 51JET REST Call Secure Mobile Cloud Service REST GET Invocation
  52. 52. 52JET REST Call Secure Mobile Cloud Service REST PATCH Invocation
  53. 53. 53JET REST Call Secure Mobile Cloud Service REST Invocation – Network Monitor
  54. 54. 54JET and Notifications Mobile Cloud Service Notifications – Register Push Clients
  55. 55. 55JET and Notifications Mobile Cloud Service Notifications – MCS UI
  56. 56. 56JET and Notifications Register Device for MCS Push ADD CORDOVA PUSH PLUGIN cordova plugin add phonegap-plugin-push --variable SENDER_ID="455522940425"
  57. 57. 57 Application Container Cloud JET in the Cloud.
  58. 58. 58Application Container Cloud Create and Package JET Application Run express YourAppName, Node.js must be installed GENERATE EMPTY NODE.JS APPLICATION Navigate to YourAppName folder and run npm install to add dependencies ADD DEPENDENCIES Copy JET implementation code into YourAppName public folder JET IMPLEMENTATION Add manifest.json file and create zip archive JET PACKAGING
  59. 59. 59Application Container Cloud Deploy JET Application
  60. 60. 60Application Container Cloud Deploy JET Application
  61. 61. 61 MAF Mobile Application Framework.
  62. 62. 62MAF and MCS Integration MAF MCS Utility Application Execute REST calls from MAF and pass security headers SIMILAR INTEGRATION PRINCIPLES AS FOR JET HYBRID More complex application testing and debugging process comparing to JET Hybrid REQUIRES MOBILE SIMULATOR TO TEST CODE Example is available for download from OTN MAF MCS UTILITY IS AVAILABLE WITH MCS INTEGRATION EXAMPLE When there are no JavaScript developers in the team WHEN TO USE MAF
  63. 63. 63 QUESTIONS Learn More.
  64. 64. 64 Sample code for JET Hybrid and OAuth authentication against MCS. OAuth Example of JET on Application Container Cloud. ACC Sample code for JET calling MCS REST service. MCS REST Sample code for MCS Connector calling ADF BC REST service. MCS Connector Sample code for JET Hybrid to register for MCS notification. Notifications
  65. 65. 65 THANKS FOR WATCHING See You Next Time @RedSamurai @RedSamurai @RedSamurai