<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">For some reason I can&#39;t get this example to work:<div><br></div><div><span style="font-family: &#39;Times New Roman&#39;; background-color: rgb(255, 255, 255); font-size: medium; "><pre style="white-space: pre-wrap; ">

[sender]
var sys = require(&#39;sys&#39;);
var amqp = require(&#39;./amqp&#39;);

var connection = amqp.createConnection({ host: &#39;localhost&#39; });

// Wait for connection to become established.
connection.addListener(&#39;ready&#39;, function () {
    var x = connection.exchange()
    var q = connection.queue(&quot;aqueuename&quot;,
             { autoDelete: true, durable: false, exclusive: false });
    x.publish(&#39;aqueuename&#39;, {foo: &quot;bar&quot;});
});

[receiver]
#!/usr/bin/env python
import pika

connection = pika.AsyncoreConnection(pika.ConnectionParameters(
        host=&#39;localhost&#39;))
channel = connection.channel()

q = channel.queue_declare(queue=&#39;aqueuename&#39;,
                         auto_delete=True,
                         durable=False,
                         exclusive=False)

print &#39; [*] Waiting for messages. To exit press CTRL+C&#39;

def callback(ch, method, properties, body):
    print &quot; [x] Received %r&quot; % (body,)

channel.basic_consume(callback,
                      queue=&#39;aqueuename&#39;,
                      no_ack=True)

pika.asyncore_loop()</pre><pre style="white-space: pre-wrap; "><br></pre><pre style="white-space: pre-wrap; ">I wanted to used a BlockingConnection. Do you know if this works with a BlockingConnection?</pre><pre style="white-space: pre-wrap; ">

<br></pre><pre style="white-space: pre-wrap; ">Thanks</pre><pre style="white-space: pre-wrap; ">Ricardo</pre></span></div></span><div><br></div>-- <br>Ricardo Brízido<br>