
Originally Posted by
Mark Fisher
Thanks for letting me know about "Control Bus" functionality. I went through this short description on how to send messages via operationChannel but unfortunately it is not clear for me how we get reference to the operationChannel.
Code:
Message operation = MessageBuilder.withPayload("@myServiceBean.shutdown()");
...
// how can we get this reference?
operationChannel.send(operation);
In my case I would like to use service that is represented in spring application context as a singleton bean and inject reference to the control bus operationChannel, how could I achieve this?
Regards,
Krzysztof