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.
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
- The requester app puts a shipping tracking request, in XML format, to the message queue (REQUEST.IN).
- 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.
- The app integration flow puts the JSON message to a message queue (REQUEST.OUT).
- The responder app picks up the JSON message from the message queue (REQUEST.OUT) and prepares a response message.
- The responder app puts the response message, in JSON format, to a message queue (REPLY.IN).
- The app integration flow picks up the response message from the message queue (REPLY.IN) and transforms the JSON message to an XML message.
- The app integration flow puts the XML response message to a message queue (REPLY.OUT).
- The requester app picks up the response message from the message queue (REPLY.OUT).
Ready to put this code pattern to use? Complete details are in the README.