Learning path: Spring Boot Java applications for CICS

This learning path is designed to get you up to speed with the usage of Java and Spring Boot in CICS Liberty. Spring Boot makes it easy to create standalone, production-grade Java applications that you can just run. Spring was designed to simplify Java Enterprise Edition using plain old Java objects (POJOs) and dependency injection, and Spring Boot builds on Spring by adding components to reduce development time and configuration. Both web applications and CICS linkable Spring Boot applications are supported in CICS, and this set of tutorials and samples provide step-by-step instructions for everything you need to know to build an enterprise Java application using Spring Boot — starting with building your first application, through to using security and transactions, integrating with Db2 using JDBC or JPA, accessing IBM MQ with JMS, and starting threads using thread concurrency.

Part 1: JCICS, Gradle, and Maven

Learn about:

  • Creating a Spring Boot web app as a WAR and importing it into Eclipse
  • Adding RESTful services that use the JCICS API to interact with a CICS TSQ
  • Building the app with Gradle or Maven using the JCICS and Spring Boot libraries
  • Deploying the app into a CICS Liberty JVM server

Part 2: Security

Learn about:

  • Three different options for securely deploying a Spring Boot application into Liberty running in CICS
  • Option 1: Using Java EE Security
  • Option 2: Using pure Spring Security
  • Option 3: Integrating Spring Security with Java EE security

Part 3: Transactions

Learn about:

  • Three ways to achieve transaction management in Spring Boot with CICS
  • Option 1: Spring’s @Transactonal annotation
  • Option 2: Spring’s TransactionTemplate for Bean Managed transactions
  • Option 3: The Java EE UserTransaction interface to directly drive the JTA

Part 4: JDBC

Learn about:

  • Creating and building a Spring Boot application that uses JDBC
  • Accessing the database using Spring’s JdbcTemplate
  • Using a DataSource bean as an alternative way to locate a dataSource reference
  • Making JDBC updates transactional in CICS
  • Testing the sample in CICS

Part 5: JMS

Learn about:

  • Creating and building a Spring Boot application that uses JMS
  • Sending a simple JMS message using Spring's JmsTemplate
  • Receiving a JMS message using a message-driven POJO (MDP)
  • Adding transaction management to the MDP
  • Testing the sample in CICS