2011/7/10 Demiss Zike <span dir="ltr"><<a href="mailto:habtdemis@gmail.com">habtdemis@gmail.com</a>></span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":5m">My question is, is there a way in RabbitMQ to just subscribe to a queue? If so, can you give me a hint as to how I can build that into my subscribe method?<br></div></blockquote><div><br>to subscribe to a queue your application needs to know name of the queue, then simply use BasicConsume to register a consumer. Alternatively applications can fetch messages as needed (BasicGet).<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div id=":5m">
<br>My other question is, how can I keep the connection created by subscribe method to simply write messages to the exchange?</div></blockquote></div><br>Sorry, I do not understand this question. Applications usually use the same AMQP connection to both receive and publish messages (but possibly different channels). Is this what you want to do?<br clear="all">
<br>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br><a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
<br>