Using Apache Camel Redis component as SAP Cloud Platform Integration Adapter
This blog is a continuation of the our earlier blog series https://blogs.sap.com/2020/07/16/apache-camel-community-adapters-usage-in-sap-cloud-platform-integration/ , which talked about usage of Apache Camel Components as SAP Cloud Platform integration service ADK compliant integration adapters, in the integration flow.
In this blog, let us understand how to use the Apache camel Spring Redis component as the SAP cloud platform integration adapter.
You can find the adapter artefacts in the SAP GitHub apibusinesshub-integration-recipes, whose link is provided below
how do we use Apache camel Spring Redis component in the CPI integration flow? you can find the steps below!
first step is to deploy the Integration adapter ESA file on to the SAP cloud platform integration runtime
this integration adapter ESA file either you can download from release folder of the artifacts repository, or you can build from the provided component source code using “Maven build” approach.
After successful deployment you can see adapter in the deployed artefacts
As a next step You can import the integration flow, which is provided as a part of artefacts, which demonstrate the usage of the Apache Camel Spring Redis component.
After importing the Redis integration flow, you can provide Redis server configuration as shown in the adapter property sheet
After providing all the configuration, deploy the integration flow and check that the integration flow message processing successfully completed in the CPI monitoring.
Input provided in the Integration Flow for persisting key/value in to the Redis Cache
You can connect to Redis server from any of standard Redis Client and check the value persisted from SAP Cloud Platform Integration flow message processing
You can also use the camel-spring-redis project source provided as a part of artefact samples,
modify it as per your requirements by importing the project in to Eclipse IDE using Maven project import wizard and do your changes as required, build the final project using Maven build, which will generate the ESA file which is the Cloud integration ADK compliant adapter
Also going forward, we continue to provide more samples of Apache Camel components (https://github.com/apache/camel/tree/master/components ) as Cloud integration ADK
Compliant adapters. Here all the components we provide based on Apache Camel version 2.17.4.
Disclaimer: This adapter is shipped as “community contribution” under Apache 2.0 license; support for this adapter should be requested by raising an issue in the GitHub repo and not standard SAP channels.