Spring cloud stream - send message after application initalization
I'am trying to send a simple message using "spring cloud stream" to the rabbitmq. Basically code looks like this: @EnableBinding(Source.class) @SpringBootApplication public class SourceApplication { public static void main(String[] args) { SpringApplication.run(SourceApplication.class, args); } @Autowired Source source; @PostConstruct public void init() { source.send(MessageBuilder.withPayload("payload").build()); } } then I get this error message: org.springframework.messaging.MessageDeliveryException: Dispatcher has no subscribers for channel 'unknown.channel.name'.; nested exception is org