>.
        </p>
        <p>
        The whole setup is done in <a href="#code/src/main/scala/io/scalac/rabbit/ConsumerApp.scala" class="shortcut">ConsumerApp.setupRabbit()</a>. Snippet below should give an idea of the process:
<pre>
<code>
/* declare and bind inbound exchange and queue */
Future.sequence {
  connection.exchangeDeclare(inboundExchange) :: 
  connection.queueDeclare(inboundQueue) :: Nil
} flatMap { _ =>
  connection.queueBind(inboundQueue.name, inboundExchange.name, "")
}
</code>
</pre>
     