[rabbitmq-discuss] AMQP Erlang client

Matthew Sackman matthew at rabbitmq.com
Sun Feb 6 17:36:45 GMT 2011

On Sun, Feb 06, 2011 at 09:23:16AM -0800, Michael Vierling wrote:
> Has the Erlang AMQP client code changed recently?  We are attempting to get the metronome plugin to work.  However the following code seems no longer to work:

Yeah, I'm afraid the metronome plugin page thing is very badly bitrotten
and out of date.

> init([]) ->
>   Connection = amqp_connection:start_direct(),

That should be {ok, Connection} = amqp_connection:start(direct),

>   Channel = amqp_connection:open_channel(Connection),

{ok, Channel} = amqp_connection:open_channel(Connection),

>   amqp_channel:call(Channel, #'exchange.declare'{exchange = <<"metronome">>,
>                                                  type = <<"topic">>}),

That's fine.


More information about the rabbitmq-discuss mailing list