ramu11 commented on code in PR #2046: URL: https://github.com/apache/camel-spring-boot/pull/2046#discussion_r4303155635
########## core/camel-spring-boot/src/main/docs/spring-boot.adoc: ########## @@ -755,4 +755,25 @@ If you encounter issues with virtual threads: 1. **Check JDK Version**: Ensure you're running JDK 21 or later 2. **Verify Property Setting**: Confirm `spring.threads.virtual.enabled=true` is set 3. **Review Logs**: Check for virtual thread configuration messages in startup logs -4. **Monitor Thread Usage**: Use JVM monitoring tools to observe virtual thread behavior \ No newline at end of file +4. **Monitor Thread Usage**: Use JVM monitoring tools to observe virtual thread behavior + +== Spring Cache State Store Support + +The `camel-spring-boot` module provides an auto-configured Apache Camel `KeyValueRepository` backed by Spring's `CacheManager` abstraction (`org.springframework.cache.CacheManager`). + +When a `CacheManager` bean is present in the Spring application context, no explicit `KeyValueRepository` bean is defined, and `camel.spring.cache.state-store.enabled=true` is set, a `SpringCacheKeyValueRepository` is automatically registered. This allows any caching backend supported by Spring Boot (such as Caffeine, Redis via Lettuce, Ehcache, Hazelcast, or JCache) to seamlessly function as an Apache Camel state store backend without requiring extra component-specific dependencies. + +=== Configuration Example + +[source,properties] +---- +camel.spring.cache.state-store.enabled=true +spring.cache.type=simple +---- Review Comment: done -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
