developing a restful web application for liberty in cics
play

Developing a RESTful Web application for Liberty in CICS - PowerPoint PPT Presentation

Developing a RESTful Web application for Liberty in CICS Introduction Course introduction What youll see in this course Eclipse development environment RESTful web application CICS region Liberty JVM server HTTP Call JCICS RESTful


  1. Developing a RESTful Web application for Liberty in CICS

  2. Introduction Course introduction

  3. What you’ll see in this course Eclipse development environment RESTful web application CICS region Liberty JVM server HTTP Call JCICS RESTful web COBOL program RESTful client application

  4. What you’ll need for this course Development workstation Ability to install IBM Explorer for z/OS Access to sample code CICS TS for z/OS V5.1 or later

  5. What you’ll learn by the end of this course 1. Developing a RESTful Java web service 2. Using the CICS Java API 3. Deployment of web applications

  6. Creating the development environment Installing IBM Explorer for z/OS

  7. Downloading Eclipse developer .ibm.com/mainframe/products/downloads

  8. Launching IBM Installation Manager

  9. Installing packages

  10. Creating the development environment Configuring CICS Explorer

  11. Configuring connectivity Configure connectivity to CICS Configure FTP connection

  12. Enabling FTP connection

  13. Connecting to a CICS region Create a CMCI connection to CICS On your CICS system 1. Add load libraries SEYUAUTH and SEYULOAD to the CICS JCL 2. Create a URIMAP 3. Create a TCPIPSERVICE 4. Or setup CICSPlex SM WUI server See Knowledge Center topic Setting up access for CICS Explorer

  14. Summary Installed CICS Explorer Created FTP and CMCI connections Next section - Using CICS Explorer to manage a Liberty JVM

  15. Configuring a CICS Liberty JVM server Introduction to the Liberty JVM server

  16. Introduction to the Liberty JVM server WebSphere Liberty Java EE application server Tightly integrated with CICS Liberty JVM server Basic steps of how to configure

  17. Liberty and CICS: A 10,000 feet view CICS Region Liberty JVM server JVM server resource JVM Liberty Server .jvmprofile server.xml

  18. Configuring a CICS Liberty JVM server Configuring a Liberty JVM server

  19. Configuring Java in CICS CICS region started SDFJAUTH in STEPLIB LE support added

  20. System initialization parameters USSHOME=/usr/lpp/cicsts/cics700

  21. JVM profile directory JVMPROFILEDIR=/u/cics1

  22. JVM sample profile /usr /lpp USSHOME /cicsts /cics700 /docs /IBM /JVMProfiles /DFHJVMAX.jvmprofile /DFHJVMST.jvmprofile /DFHOSGI.jvmprofile Sample Liberty /DFHWLP.jvmprofile JVM profile

  23. Copying the sample profile ${USSHOME}/JVMProfiles ${JVMPROFILEDIR} /usr/lpp/cicsts/cics700/JVMProfiles /u/cics1 DFHWLP.jvmprofile DFHWLP.jvmprofile

  24. Reviewing and updating the JVM profile

  25. Reviewing and updating the JVM profile

  26. Enabling auto configure

  27. Setting the TCP/IP host values

  28. Selecting the JVM server resource definition

  29. Summary Created JVM profile using supplied template DFHWLP.jvmprofile Created CICS JVMSERVER resource definition Next lecture - Install and enable the JVM server

  30. Configuring a CICS Liberty JVM server Starting and validating the Liberty JVM server

  31. Starting the Liberty JVM server

  32. Verifying the Liberty JVM server is running

  33. Accessing the Liberty server default welcome page

  34. Viewing the Liberty message log

  35. Verifying the logs

  36. Verifying the logs

  37. Editing the server.xml file

  38. Adding the JAX-RS feature

  39. Enabling dropins

  40. Editing the server.xml file

  41. Verifying the changes

  42. Creating a RESTful service for Liberty in CICS Introduction to our RESTful web application

  43. RESTful web applications REST JAX-RS Java EE 6 JSON

  44. Sample application architecture CICS Region Liberty JVM Server HTTP method invoke GET request JAX-RS RESTful JAX-RS Runtime Client Response {json} Web Application Data method return

  45. Creating a RESTful service for Liberty in CICS Developing the application

  46. Sample application github.com/cicsdev/cics-java-liberty-restapp

  47. New project dialog

  48. New dynamic web project wizard

  49. New dynamic web project wizard

  50. Sample application architecture CICS region Liberty JVM server HTTP method invoke GET request JAX-RS RESTful JAX-RS runtime client Response {json} Web application data method return

  51. Java bean classes CICSInformation CICSEnvironment APPLID Product name JVM server Product version Current time CICS environment

  52. getCICSInformation method

  53. Importing the code

  54. Importing the code

  55. Verifying packages

  56. Configuring the build path

  57. Adding libraries to the build path

  58. Selecting libraries to add

  59. Selecting the target CICS version for deployment

  60. JAXB annotations

  61. Sample application architecture CICS Region Liberty JVM Server HTTP method invoke GET request JAX-RS RESTful JAX-RS Runtime Client Response {json} Web Application Data method return

  62. JAX-RS annotations

  63. JAX-RS annotations

  64. getCICSInformation method

  65. CICSInformation class

  66. Summary Completed coding of our application Ready to deploy into our Liberty JVM server We will extend our application in the next lecture

  67. Creating a RESTful service for Liberty in CICS Deploying the application to the dropins directory

  68. Deploying via the dropins directory

  69. Exporting a WAR file

  70. Copying WAR file to z/OS

  71. Messages.log file

  72. Messages.log file

  73. Testing the application http://winmvs2c.hursley.ibm.com:9080/com.ibm.cicsdev.restapp/

  74. The URL http://winmvs2c.hursley.ibm.com:9080/com.ibm.cicsdev .restapp/rest/cicsinfo

  75. Sample application architecture CICS Region Liberty JVM Server HTTP method invoke GET request JAX-RS RESTful JAX-RS Runtime Client Response {json} Web Application Data method return

  76. JSON response

  77. Summary Coded Deployed Tested

  78. Creating a RESTful service for Liberty in CICS Deploying the application in a CICS bundle

  79. Deploying the application in a CICS bundle RESTful web application with dropins Useful for rapid application development Deploy the WAR file using a CICS bundle First delete any existing restapp WAR files from dropins

  80. What is a CICS bundle? resource_1 Web Archive (WAR) resource_5 resource_2 Enterprise Archive (EAR) cics.xml resource_4 resource_3 Enterprise Bundle Archive (EBA)

  81. CICS bundle project

  82. CICS bundle project

  83. CICS bundle project

  84. Adding a web project to a CICS bundle

  85. Adding a web project to a CICS bundle

  86. Adding a web project to a CICS bundle

  87. Exporting a CICS bundle project

  88. Exporting a CICS bundle project

  89. Exporting a CICS bundle project

  90. Exporting a CICS bundle project

  91. Creating a CICS bundle definition

  92. Creating a CICS bundle definition

  93. Creating a CICS bundle definition

  94. Installing a CICS bundle definition

  95. Installing a CICS bundle definition

  96. Installing a CICS bundle definition

  97. Installing a CICS bundle definition

  98. Liberty messages.log file

  99. Testing the application

  100. Summary Created sample application Deployed into CICS Dropins directory CICS bundles

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend