I have an interface Channels.java
final String OUTPUT = "output";
final String INPUT = "input";
@Output(OUTPUT)
MessageChannel output();
@BridgeFrom(OUTPUT)
PollableChannel input();
I have another class where i perform all the messaging operations:
@Autowired
@Qualifier(Channels.OUTPUT)
private MessageChannel Output;
I am able to send messages to the exchanges fine. How to I use my PollableChannel here? What am I doing wrong?
EDIT
And how to I access the bean inside my @Component class?
I now have @Configuration class with
@Bean
@BridgeTo(Channels.OUTPUT)
public PollableChannel polled() {
return new QueueChannel();
}
Want to be able to use this channel to receive messages?