This version sends documents to a RMQ queue.
Added a setURI function.