Announcement Announcement Module
Collapse
No announcement yet.
programmatically inject to channel Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • programmatically inject to channel

    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;

  • #2
    I think I figured my problem, I will test and then update the post if my guess is correct

    Comment

    Working...
    X