June 2018
Intermediate to advanced
408 pages
11h 23m
English
Now, we need to create a binding using the BindingBuilder class to connect queue to Exchange. The following code is used to create a binding:
@BeanBinding exchangeBinding(DirectExchange directExchange, Queue queue) { return BindingBuilder.bind(queue). to(directExchange) .with(ROUTING_KEY);}
The exchangeBinding() method creates a binding of queue and Exchange with the ROUTING_KEY routing key value.
Read now
Unlock full access