I have a spring-cloud-stream
application with kafka binding. I would like to send and receive a message from the same topic from within the same executable(jar). I have my channel definitions such as below:-
public interface ChannelDefinition {
@Input("forum")
public SubscriableChannel readMessage();
@Output("forum")
public MessageChannel postMessage();
}
I use @StreamListener
to receive messages. I get all sorts of unexpected errors. At times, i receive
- No dispatcher found for unknown.message.channel for every other message
- If i attach a command line kafka subscriber to the above forum topic, it recieves every other message.
- My application receives every other message, which is exclusive set of messages from command line subscriber. I have made sure that my application subscribes under a specific group name.
Is there a working example of the above usecase?