-
Nov 26th, 2012, 01:16 PM
#1
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;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules