There is a need for me to post certain messages to one topic and another set of messages to another topic, I am currently using Spring integration for Kafka to post messages to one topic, but I am looking for example about how can I post messages to different topics based on the situation.
I am using int-kafka:producer-configuration tags to create context
Update
Thank you that is working. I am using the below configuration in my application context xml and the below in my code to check get the desired TOPIC name kafkaUpdate = channel.send(MessageBuilder.withPayload(jsonAuditLog).setHeader(KafkaHeaders.TOPIC, "").build(), kafkaTimeOut.longValue());
Code is working and I see messages getting posted to different topics as I wanted, but not sure if this is the rite way....