Results 1 to 2 of 2

Thread: programmatically inject to channel

  1. #1

    Default 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. #2

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •