Digital Developer Conference: Cloud Security 2021 -- Build the skills to secure your cloud and data Register free

Integrate your on-premises applications and deliver messages reliably

Summary

This code pattern demonstrates how to connect your on-premises applications and deliver messages reliably using the enterprise-grade messaging and integration features of IBM Cloud Pak for Integration.

Description

The need for integrating two applications can arise in various scenarios. Two common scenarios are:

  • Application modernization where the modernized part of the application has to be integrated with the legacy application.
  • Hybrid cloud solution deployment where the two different parts of the application has to be integrated.

IBM Cloud Pak for Integration has capabilities that includes API management, application and data integration, messaging and events, high-speed transfer, and end-to-end security.

In this code pattern, we will look at a shipment tracking scenario. There are two client applications, a requestor application and a responder application. The requester client application requests shipment tracking data. And the responder application provides shipment tracking data. The communication between the requester and responder applications happens asynchronously.

These requestor and responder applications use IBM Cloud Pak for Integration to:

  • Achieve reliable and secure messaging
  • Host an application integration flow, which is developed using the App Connect Enterprise toolkit
  • Transform XML messages to JSON, and vice versa, using a low-code approach.

After you complete this pattern, you’ll understand how to:

  • Set up secure messaging (in an MQ queue manager) with TLS
  • Deploy application integration flows
  • Integrate applications, outside of a Cloud Pak for Integration cluster
  • Use the messaging and application integration capabilities of Cloud Pak for Integration
  • Run a simple Java JMS applications to test the complete set up

Flow

Application integration architecture using Cloud Pak for Integration

  1. The requester app puts a shipping tracking request, in XML format, to the message queue (REQUEST.IN).
  2. The app integration flow picks up the requester app request from the message queue (REQUEST.IN) and transforms the XML message to a JSON message.
  3. The app integration flow puts the JSON message to a message queue (REQUEST.OUT).
  4. The responder app picks up the JSON message from the message queue (REQUEST.OUT) and prepares a response message.
  5. The responder app puts the response message, in JSON format, to a message queue (REPLY.IN).
  6. The app integration flow picks up the response message from the message queue (REPLY.IN) and transforms the JSON message to an XML message.
  7. The app integration flow puts the XML response message to a message queue (REPLY.OUT).
  8. The requester app picks up the response message from the message queue (REPLY.OUT).

Instructions

Ready to put this code pattern to use? Complete details are in the README.