Hello
I am trying to inject file into channel programmatically, but I am not sure if I am using the correct class for the channell,
here is my code and config


<int:channel id="responseChannel"/>


in the class

@Autowired
DirectChannel responseChannel;

public void addResponsetoChannel(Response response){

Message<Response > responseMessageObject = MessageBuilder.withPayload(response).build();

responseChannel.send(responseMessageObject);


}


---I always get NULL for responseChannel

any help will be appreciated.

Regards;