Optimize use of RabbitTemplate for sending messages in client and server

Change-Id: I042f709de23ec104d2faddeca8fe04169b6793bb