Create MessageSource for Redis in Spring Integration
I want to configure InboundChannelAdapter so that it should pop message from a redis queue and pass it to a ServiceActivator in Java based annotations(only, prefer to avoid XML). I found the code from Spring documentation: @Bean("someAdapter.source") @EndpointId("someAdapter") @InboundChannelAdapter(channel = "channel3", poller = @Poller(fixedDelay = "5000")) public MessageSource<?> source() { return () -> { ... }; } But what I do not understand here is, how can I return MessageSource by poping the data from redis queue using redisConnectionFactory? In other words, how can I do this in java