usr1234
usr1234

Reputation: 71

Exception while creating spring Pollable Channel

I created a Pollable Channel in my interface :

Channels.java:

final String INPUT = "input";

@Input(INPUT)
PollableChannel input();

In my service i have :

Service.java

@Autowired
@Qualifier(Channels.INPUT)
private PollableChannel input;

@ServiceActivator(inputChannel = Channels.INPUT)
public void method() {

    Message<?> msg = input.receive();

I am unable to start my spring application, getting this exception :

**Caused by: java.lang.IllegalStateException: No factory found binding target type: org.springframework.messaging.PollableChannel for channelFactory**

NOTE: I have an output channel for my service which works fine, so i didnt post te code here

Upvotes: 2

Views: 1012

Answers (1)

Ilayaperumal Gopinathan
Ilayaperumal Gopinathan

Reputation: 4179

PollableChannel is not supported for Binding. You can see more information on this here

Upvotes: 3

Related Questions