Replies: 1 comment
-
| Consider to use  It is also sounds suspicious that Kafka consumer has started to emit messages so early. The   | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am using
org.springframework.integration.channel.DirectChannelwithorg.springframework.kafka.listener.ConcurrentMessageListenerContaineras Kafka consumer for my project.I would like to use @Cacheable method in service used by message execution.
I found out that in
org.springframework.context.support.AbstractApplicationContext#refresh()listeners are registered (and start to consume messages) beforeorg.springframework.context.support.AbstractApplicationContext#finishBeanFactoryInitialization(beanFactory)which initialize Cache (org.springframework.cache.interceptor.CacheAspectSupport).Is there any other way to use cache from the beginning of message consumption that to disable registration at autostart? For now cache is initialized and loaded after few messages consumed.
Best regards,
Lukasz
Beta Was this translation helpful? Give feedback.
All reactions