[rabbitmq-discuss] 0-9-1 Coming Soon (Was: Roadmap Questions)

Tony Garnock-Jones tonyg at lshift.net
Wed Jun 24 23:25:19 BST 2009

Hi Chris,

celldee wrote:
> Pardon my ignorance, but how do I get hold of the "amqp_0_9_1" branch?
> I've looked at http://hg.rabbitmq.com/rabbitmq-server but the
> whereabouts of the "amqp_0_9_1" branch is not apparent to me.

Here's an example that checks out the server, the code generator, and 
the C client, switches the checkouts to the amqp_0_9_1 branch, builds 
them, and runs the examples:

# Check out the code
hg clone http://hg.rabbitmq.com/rabbitmq-codegen
hg clone http://hg.rabbitmq.com/rabbitmq-server
hg clone http://hg.rabbitmq.com/rabbitmq-c

# Switch to amqp_0_9_1 branches
(cd rabbitmq-codegen; hg up amqp_0_9_1)
(cd rabbitmq-server; hg up amqp_0_9_1)
(cd rabbitmq-c; hg up amqp_0_9_1)

# Build and start the server
make -C rabbitmq-server run

# Build the C client examples
(cd rabbitmq-c; autoreconf -i)
(cd rabbitmq-c; ./configure)
(cd rabbitmq-c; make)

# Run a listener
./rabbitmq-c/examples/amqp_listen localhost 5672 amq.direct foo

# Send a couple of test messages (from another window)
./rabbitmq-c/examples/amqp_sendstring localhost 5672 amq.direct foo 1
./rabbitmq-c/examples/amqp_sendstring localhost 5672 amq.direct foo 2
./rabbitmq-c/examples/amqp_sendstring localhost 5672 amq.direct foo 3


More information about the rabbitmq-discuss mailing list