Matthew -<br><br>I'm trying to build an infrastructure on top of RabbitMQ that allows<br>an administrator to remotely suspend and resume a server.<br><br>Servers generally run in a loop, and in many cases spend most of<br>
their time (very efficiently) waiting on read. Given such a server,<br>we wish to suspend it before it processes another message.<br><br>If there are several servers reading from the same queue, and<br>we want to suspend one of them, and if we used the ack-ing manually<br>
approach, then one message would be held by the suspended server<br>and could not be processed by any of the others. We would like that<br>message to instead be processed by one of the other servers. I suppose<br>that the suspended server could write the message back to the queue,<br>
but that seems a little like a hack.<br><br>Sorry if I'm not being clear,<br><br>- Jim<br><br clear="all">Jim Irrer <a href="mailto:irrer@umich.edu">irrer@umich.edu</a> (734) 647-4409<br>University of Michigan Hospital Radiation Oncology<br>
519 W. William St. Ann Arbor, MI 48103<br>
<br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 12:04 PM, Matthew Sackman <span dir="ltr"><<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jim,<br>
<div class="im"><br>
On Thu, Jan 14, 2010 at 11:19:41AM -0500, Jim Irrer wrote:<br>
> Matthew -<br>
><br>
> Thanks for trying but that does not really help. I want to interrupt a<br>
> free-running<br>
> process that has already posted the read. To explore this, I modified<br>
> RabbitMQ's<br>
> SimpleConsumer class (below) to post a read (via the nextDelivery method),<br>
> and<br>
> while it is waiting, have another thread close the channel.<br>
<br>
</div>Hmm. Could you explain why you're wanting to do this? I'm sufficiently<br>
confused that I'm suspecting there's a better solution to the problem<br>
you're trying to solve.<br>
<div><div></div><div class="h5"><br>
Matthew<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>