<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Suhail,<br>
<br>
Suhail Doshi wrote:
<blockquote
cite="mid:376f3e6f0906171126j6ec132f3ged75c33c7c6e45c9@mail.gmail.com"
type="cite">Hey Ben,
<div><br>
</div>
<div>My name is Suhail, I am having a bit of trouble with the erlang
client lib for rabbitmq, for some reason my code simply just halts at
the amqp_connection:start() phase:</div>
<div><br>
</div>
<div>
<div>-module(metrics_queue).</div>
<div>-author('Suhail Doshi <<a moz-do-not-send="true"
href="mailto:suhail@mixpanel.com" target="_blank">suhail@mixpanel.com</a>>').</div>
<div>-export([amqp_lifecycle/0, send_message/5, log/2]).</div>
<div><br>
</div>
<div>-include_lib("rabbitmq-erlang-client/rabbitmq_server/include/rabbit.hrl").</div>
<div>-include_lib("rabbitmq-erlang-client/rabbitmq_server/include/rabbit_framing.hrl").</div>
<div>-include("rabbitmq-erlang-client/include/amqp_client.hrl").</div>
<div><br>
</div>
<div>-record(rabbit_info, {channel, ticket, exchange, routing_key}).</div>
<div><br>
</div>
<div>amqp_lifecycle() -></div>
<div> User = Password = "mixpanel",</div>
<div> Realm = <<"mixpanel">>, %% virtual_host</div>
<div> log("test", "state-1"),</div>
<div> Connection = amqp_connection:start(User, Password,
"127.0.0.1"),</div>
<div> log("test", "state-2"),</div>
<div> Channel = amqp_connection:open_channel(Connection),</div>
<div> Access = #'access.request'{</div>
<div> realm = Realm,</div>
<div> exclusive = false,</div>
<div> passive = true,</div>
<div> active = true,</div>
<div> write = true,</div>
<div> read = true</div>
<div> },</div>
<div><br>
</div>
<div>I added you on gchat if you have any time to talk.</div>
</div>
</blockquote>
<br>
Is there anything in the server log? Can you supply some details about
your environment and the versions of the client and server you are
using?<br>
<br>
Also, you're using the a deprecated API - realms have been removed from
the spec.<br>
<br>
I'm posting this to the Rabbit list - this is the most appropriate
place to get help from the community.<br>
<br>
HTH,<br>
<br>
Ben<br>
</body>
</html>