Changed to use topic exchange and onmessage in the message listner