I am trying to use RedisIdempotentRepository as Idempotent Consumer for the camel Route. I tried with local Redis docker container and its working as expected with the following code.
IdempotentRepository redisIdempotentRepository = new RedisIdempotentRepository("redis");
from(source)
.idempotentConsumer(simple("${in.header.CamelFileName}"), redisIdempotentRepository)
.log("Uploading file ${file:name} started...")
.to(destination)
.log("Uploading file ${file:name} completed...");
Without providing any details, it is connecting to localhost:6379
. How can i provide the ElastiCache
details to connect for?
I tried these configurations (link1, link2) to build RedisTemplate and it is not able to connect.