title: RabbitMQ java client RpcClient/RpcServer example
body: <p>I'm new to RabbitMQ and am trying to implement an app where RpcClient and RpcServer seems to be a good fit. This is how the app works: When a request comes, it'll call RpcClient to enqueue the request and then wait for the response. On the server side, a listener would dequeue the request and process it and then enqueue using RpcServer. In theory, this should work. I also found a page on Rabbit MQ that explains how to improve the performance by using a direct reply-to.<a href="https://www.rabbitmq.com/direct-reply-to.html" rel="nofollow">https://www.rabbitmq.com/direct-reply-to.html</a>. However, I could not tell how to apply this to use the com.rabbitmq.client.RpcClient and com.rabbitmq.client.RpcServer  to implement my app. Could someone shed some lights on this? Thanks!</p>