{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-kafka/issues/611","repository_url":"https://api.github.com/repos/spring-projects/spring-kafka","labels_url":"https://api.github.com/repos/spring-projects/spring-kafka/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-kafka/issues/611/comments","events_url":"https://api.github.com/repos/spring-projects/spring-kafka/issues/611/events","html_url":"https://github.com/spring-projects/spring-kafka/issues/611","id":307128158,"number":611,"title":"Unable to find way to re-initialize @KafkaListener annotated method.","user":{"login":"rohitverma1986","id":19512391,"avatar_url":"https://avatars1.githubusercontent.com/u/19512391?v=4","gravatar_id":"","url":"https://api.github.com/users/rohitverma1986","html_url":"https://github.com/rohitverma1986","followers_url":"https://api.github.com/users/rohitverma1986/followers","following_url":"https://api.github.com/users/rohitverma1986/following{/other_user}","gists_url":"https://api.github.com/users/rohitverma1986/gists{/gist_id}","starred_url":"https://api.github.com/users/rohitverma1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rohitverma1986/subscriptions","organizations_url":"https://api.github.com/users/rohitverma1986/orgs","repos_url":"https://api.github.com/users/rohitverma1986/repos","events_url":"https://api.github.com/users/rohitverma1986/events{/privacy}","received_events_url":"https://api.github.com/users/rohitverma1986/received_events","type":"User","site_admin":false},"labels":[{"id":335082265,"url":"https://api.github.com/repos/spring-projects/spring-kafka/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-21T06:00:34Z","updated_at":"2018-03-21T13:54:42Z","closed_at":null,"author_association":"NONE","body":"Is there a way to apply changes in consumer properties during runtime.\r\nI am trying to change consumer properties by making change in a property file, which will be watched by @Scheduled method( this will look for change in any property value and re-initialize the consumer after updating container factory bean instance picked from application context).\r\nOr please suggest the right way to do so."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-kafka/issues/comments/374944556","html_url":"https://github.com/spring-projects/spring-kafka/issues/611#issuecomment-374944556","issue_url":"https://api.github.com/repos/spring-projects/spring-kafka/issues/611","id":374944556,"user":{"login":"artembilan","id":1071590,"avatar_url":"https://avatars3.githubusercontent.com/u/1071590?v=4","gravatar_id":"","url":"https://api.github.com/users/artembilan","html_url":"https://github.com/artembilan","followers_url":"https://api.github.com/users/artembilan/followers","following_url":"https://api.github.com/users/artembilan/following{/other_user}","gists_url":"https://api.github.com/users/artembilan/gists{/gist_id}","starred_url":"https://api.github.com/users/artembilan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artembilan/subscriptions","organizations_url":"https://api.github.com/users/artembilan/orgs","repos_url":"https://api.github.com/users/artembilan/repos","events_url":"https://api.github.com/users/artembilan/events{/privacy}","received_events_url":"https://api.github.com/users/artembilan/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T13:54:42Z","updated_at":"2018-03-21T13:54:42Z","author_association":"MEMBER","body":">  I want to introduce new broker or change consumer group name or any other ConsumerConfig's property.\r\n\r\nThat's already a `DefaultKafkaConsumerFactory` responsibility, or even better to say the `Map` you inject into the `DefaultKafkaConsumerFactory`. You can change the content of that map and really `stop()` and `start()` for the `MessageListenerContainer` would be enough. When we start a container, we call `new ListenerConsumer(this.listener, listenerType);` which, in turn, `KafkaMessageListenerContainer.this.consumerFactory.createConsumer()`.\r\n\r\nHowever a `consumerGroupId` indeed should be changed via `ContainerProperties`."}}
{"actor":{"display_login":"artembilan"}}