As per https://github.com/marinkobabic/axon-kafka-example, I have followed the almost same implementation to use Kafka to publish events.
I have upgraded my dependencies as below
implementation("org.axonframework.extensions.kafka:axon-kafka:4.0-RC2") implementation group: 'org.axonframework', name: 'axon-spring-boot-starter', version: '4.2'
I am not able to autowire the eventbus , it is giving Nullpointer excetion. Note: I cannot use version as 3.X as it don't include the org.axonframework.modelling.command.TargetAggregateIdentifier. Please suggest what i am doing wrong.