<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I don't want to make large changes in the code, Is there simple way to fix it?<br><br></div>I am looking for basic guide to write with erlang and rabbitmq , How can I debug my code and so?<br>
<br></div>Thank You<br></div>Gadi<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jun 2, 2014 at 4:34 PM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/06/2014 12:49PM, Gadi Dor wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi All<br>
<br>
When I am using:<br>
<br>
basic_consume( Queue, true, ChPid, undefined,ConsumerTag, false, undefined)<br>
</blockquote>
<br>
You don't say where this is from, but that looks like an old version of rabbit_amqqueue:basic_consume(<u></u>).<br>
<br>
That's not a public API. It makes a number of undocumented assumptions about the caller, and changes freely between RabbitMQ releases. I very much doubt you want to use it.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I got strange error:<br>
<br>
[{basic_consume,<br>
                             [{amqqueue,<br>
                               {resource,<br>
                                <<"/">>,queue,<br>
                                <<"user1@jabber.tld">>},<br>
                               true,false,none,<br>
                               [],<12016.1240.0>,<br>
                               [],[],undefined,<br>
                               [],[]},<br>
                              true,<0.416.0>,<br>
                              undefined,<br>
                              undefined,false,<br>
                              undefined],<br>
                             []},<br>
                            {rabbit_misc,<br>
                             with_exit_handler,2,<br>
                             []},<br>
                            {rpc,<br>
                             '-handle_call_call/6-fun-0-',<br>
                             5,<br>
                             [{file,"rpc.erl"},<br>
                              {line,205}]}]}<br>
</blockquote>
<br>
That error message looks like important bits have been removed.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Any Idea Please?<br>
</blockquote>
<br>
To consume from a queue using Erlang, use the Erlang client: <a href="http://www.rabbitmq.com/erlang-client-user-guide.html" target="_blank">http://www.rabbitmq.com/<u></u>erlang-client-user-guide.html</a><br>
<br>
Cheers, Simon<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, Pivotal<br>
</font></span></blockquote></div><br></div>