Skip to Content
Technical Articles
Author's profile photo Mayura Belur Mohana

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

https://github.com/sap/apibusinesshub-integration-recipes/tree/master/Recipes/for/redis-integration-adapter

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.

 

Assigned Tags

      3 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ramesh Vodela
      Ramesh Vodela

      I wanted to try this and installed the Eclipse tools.  When I try to configure the operation Server for

      the integration tenant with the Foundry Cloud Integration Suite CPI URL I got errors.

      I did not have connections issues before but this happens with the new trial version Integration

      Suite. Have you tried with this trial version?

      Best regards

      Ramesh

      Author's profile photo Mayura Belur Mohana
      Mayura Belur Mohana
      Blog Post Author

      Hi Ramesh,

      Cloud Integration on CF doesn't support eclipse tooling for now. you can try this on CPI neo tenant.

      Best Regards,

      Mayur

       

       

      Author's profile photo Mingyang Zhang
      Mingyang Zhang

      hi,

      How do I configure proxy mode to request a local redis service.

       

      Best Regards,

       

      Andy