Hi again, <br>Been doing a lot of googling on the queue/topic/listening for consumed messages count an found this on activemq : <br><br><a href="http://activemq.apache.org/cms/handling-advisory-messages.html" target="_blank">http://activemq.apache.org/<wbr>cms/handling-advisory-<wbr>messages.html</a><br>
It allows one to check the count of currently listening consumer a queue/topic. <br><br>Is there anything like this in rabbit mq ?<br>This
might allow me to create a listener that would only send a message to
notify the first manager that the references were removed.<br>
Another could be to define the "delete referenrences" message to live
for x consumptions (x being the number of listener on the "delete
references" queue) and add an advisory listener on the deletion of the
message from the queue to process deletion of initial data.<br>
Cheers.<br><br>Le jeudi 10 janvier 2013 19:22:57 UTC+1, Shadowalker a écrit :<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Hi, <br>I need to find a solution to a problem of mine and I thought there might be one within rabbitmq so here it is :<br>I have a manager that, when requested to delete an element from its DB, needs to notify all other elements that reference the element it needs to delete also no logner reference it.<br><br>The main idea to keep in mind is that those references that need be removed are not necessarily stored in the same DB (nor same server) as the initial manager.<br><br>So I thought I could use a queue to notify that references to the element I want to delete need to be removed. And all element that could have a reference to that type of element are set to listen on that queue.<br><br>What I'd like to know now is whether I can configure my manager to wait for a return "from the queue" (or something else) to be notified that all references have been removed.<br><br>say <br>Manager sends a message to queue Q1.<br>I can have 1,2,3,more other managers listening on Q1.<br><br>Each of them would consume the message and once all of them have consumed the message <br>I would either send directly a notification to the first manager, or create a entry in a queue that the manager listens on so that he would be notified that it can delete the element.<br><br><br>Is there anyway to do this ?<br>Note : the fact that the complete removal of the element is not immediate is not an issue ( ex: I can ask for deletion a 11:00 and the deletion be effective at 13:00)<br>Note2 : I've seen the documentation about RPC calls but this is not really what I'm looking for and if avoidable, I'll rather do so.<br><br>Thanks.<br><br>Cheers.<br><br><br></blockquote>