Blog Archive for June 4, 2010

AMQP with RabbitMQ and Java Client

June 4, 2010

Here's some example code, similar in functionality to the fanout example at http://www.drumcoder.co.uk/blog/2010/jun/04/amqp-rabbitmq/, but using the standard RabbitMQ Java client instead of python.

This code will interoperate with the python code at the other blog entry.

Client Side Code

Here's the equivalent code to receive messages and print them …

AMQP with RabbitMQ and py-amqplib

June 4, 2010

RabbitMQ is an open source messaging solution written in Erlang. It's available on the majority of linux distributions, and we're going to use a python client here, called py-amqplib.

Simple Test

This first example is largely based on the code at the "Rabbits and Warrens" link below. This is a …