On Mon, Mar 28, 2011 at 04:03:09PM +0200, Gerd Stolpmann wrote:
> the ocaml team at Mylife is proud to release another library to the
> public: Netamqp is a client of the AMQP-0-9-1 protocol which is used to
> talk to message queue servers. Netamqp is an independent implementation
> of such a client, and not simply a wrapper around a C library. Netamqp
> has been tested against RabbitMQ.
Gerd, have you tried to interoperate with any other language?
I tried examples/t_sender.ml along with the following Python receiver
(all on the same RabbitMQ instance), but the Python code didn't appear
to see any messages at all. I'm quite probably doing something stupid.
----------------------------------------------------------------------
#!/usr/bin/python
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(
'localhost'))
channel = connection.channel()
channel.queue_declare(queue='test_xy')
def callback(ch, method, properties, body):
print " [x] Received %r" % (body,)
channel.basic_consume(callback,
queue='test_xy',
no_ack=True)
print ' [*] Waiting for messages. To exit press CTRL+C'
channel.start_consuming()
----------------------------------------------------------------------
Rich.
--
Richard Jones
Red Hat
--
Caml-list mailing list. Subscription management and archives:
https://sympa-roc.inria.fr/wws/info/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs