public
Description: Ruby binding to OpenAMQ's WireAPI
Homepage:
Clone URL: git://github.com/lightwave/ropenamq.git
name age message
file LICENSE Fri Apr 03 19:58:48 -0700 2009 Initial version. [lightwave]
file README Sun Apr 05 17:01:02 -0700 2009 Add a disclaimer and supported platforms to REA... [lightwave]
file extconf.rb Fri Apr 03 19:58:48 -0700 2009 Initial version. [lightwave]
directory lib/ Mon Apr 27 20:35:22 -0700 2009 Properly release consumer during error conditio... [lightwave]
file rwire.c Mon Apr 27 20:35:22 -0700 2009 Properly release consumer during error conditio... [lightwave]
README
To build,

export IBASE=<OpenAMQ's install directory>

ruby extconf.rb
make

To install,

sudo make install

Disclaimer
==========
Please read the LICENSE file carefully.

This Ruby binding for OpenAMQ is still under continuous development. It is
being used in production environment. However, the higher-level ruby interface
in lib/amq/openamq.rb is still evolving. It is not very Ruby'ish yet. The
RWire module is just a thin wrapper around the WireAPI, which is relatively
stable. i.e., it's unlikely to change going forward. I can't guarantee that
the Ruby abstraction layer will be backward compatible as it's still evolving.
Use at your own risk.

Platforms
=========

Tested only on Mac OS X 10.5.6 and Linux Ubuntu. Other platforms have not been
tested.

Example
=======

require 'amq/openamq'

# Create an OpenAMQ connection
AMQ::Connection.connect() do |c|
  # Create an OpenAMQ Session
  c.new_session() do |s|
    # Publish a request message 'Hello' using foobar is the routing key.
    # And listen for response back.  The AMQP content body is returned.
    puts s.request(:body => "Hello", :routing_key => "foobar")
  end
end