File tree Expand file tree Collapse file tree
spring-amqp/src/main/java/org/springframework/amqp/tutorials/tut6 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ private static class ClientConfig {
3838
3939 @ Bean
4040 public DirectExchange exchange () {
41- return new DirectExchange ("tut. rpc" );
41+ return new DirectExchange ("rpc" );
4242 }
4343
4444 @ Bean
@@ -53,12 +53,12 @@ private static class ServerConfig {
5353
5454 @ Bean
5555 public Queue queue () {
56- return QueueBuilder .durable ("tut.rpc.requests " ).quorum ().build ();
56+ return QueueBuilder .durable ("rpc_queue " ).quorum ().build ();
5757 }
5858
5959 @ Bean
6060 public DirectExchange exchange () {
61- return new DirectExchange ("tut. rpc" );
61+ return new DirectExchange ("rpc" );
6262 }
6363
6464 @ Bean
Original file line number Diff line number Diff line change 2323 */
2424public class Tut6Server {
2525
26- @ RabbitListener (queues = "tut.rpc.requests " )
27- // @SendTo("tut.rpc.replies ") used when the client doesn't set replyTo.
26+ @ RabbitListener (queues = "rpc_queue " )
27+ // @SendTo("rpc_replies ") used when the client doesn't set replyTo.
2828 public int fibonacci (int n ) {
2929 System .out .println (" [x] Received request for " + n );
3030 int result = fib (n );
You can’t perform that action at this time.
0 commit comments