#I need help to understand consumers without autowire in spring

3 messages · Page 1 of 1 (latest)

dry solstice
#

It's in kotlin. I am beginner in kafka

I can read my kafka message very well with Autowired annotation but on trying to manually create I am getting 0 message .

Code description :
I call val prop=new Properties()
prop.put()
bootstrap server , key-value deserialiser ,schema url
create
consumer = new consumer(props)

then subscribe to topic and poll gives 0 count

but on autowire it gives count

Values are sent during test itself so,that can't be issue

I want to know if manual needs consumwr factory something

sacred elmBOT
#

This post has been reserved for your question.

Hey @dry solstice! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.