On Thu, Apr 10, 2008 at 6:50 AM, Ben Hood <<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Joe,<br>
<div class="Ih2E3d"><br>
On 10 Apr 2008, at 00:17, Joe Lee wrote:<br>
> BasicConsume and BasicGet there is a variable named queue = Q. In<br>
> pub-sub case, how do you define null queue in Erlang-client? In<br>
> basic.consume I set the queue = <<"">> like below:<br>
<br>
</div>Do you have a particular reason to declare a null queue?<br>
</blockquote><div><br>Taken straight from amqp0.8.pdf file pg25. <br>
<br>
Docs' psuedocode explanation has set queue=<empty>. That was my reason to declare a null queue.<br>
<br>
Does null queue have any special functionality?<br>
<br>
<br>
Abstract from the amqp docs:<br>
<br>
<a href="http://2.1.5.3">2.1.5.3</a> Constructing a PubSub<br>
Subscription Queue<br>
<br>
Here is the pseudocode<br>
for creating and binding the pubsub subscription queue:<br>
Queue.Declare<br>
queue=<empty><br>
auto_delete=TRUE<br>
S:Queue.Declare-Ok<br>
queue=tmp.2<br>
Queue.Bind<br>
queue=tmp.2<br>
TO exchange=amq.topic<br>
WHERE routing_key=STOCK.USD.*<br>
<br>
To consume from the subscription queue, the consumer does this:<br>
<br>
Basic.Consume<br>
queue=tmp.2<br>
<br>
When publishing a message, the producer does something like this:<br>
<br>
Basic.Publish<br>
exchange=amq.topic<br>
routing_key=STOCK.USD.IBM<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Maybe you can tell us what you are trying to achieve.<br>
</blockquote><div><br>I just want to do simple publish a message and then consume the message.<br><br>Thank you,<br>Joe<br></div></div>