Execute a command only after all subscribers have consumed their messages

Let's say we have queue Q1 and we enqueue two messages M1 and M2. Q1 has three subscribers S1, S2, and S3. We want to execute some process P1 only after ALL subscribers (S1-S2-S3) have consumed all of their message (M1-M2). Is this something Q1 would know about (it knows once all subscribers have processed all their messages) so that on "ALL Done" event it can start P1 either directly or by enqueuing a message for another subscriber, or is this something that requires hand-written code that would keep track of who has dequeued what and execute P1 once everybody is done.

what you can do is to right another piece of code querying queue table on regular basis. When your query is returning 0 count that shows that all messages have been dequeued.

Similar Messages

  • Confirmation that all topic subscribers have consumed message

    Is it possible to intercept an event that is produced when all topic subscribers have consumed a message?
    I am designing a messaging model where three different sub-systems subscribe to a topic. I need to do some processing once they have all consumed a message posted to the topic. Is this possible? I can not find any documentation on how to achieve this.
    Thanks
    Rich

    Thanks for your response. I don't think the JMS spec does provide a way to do this. The message broker has to track this, since it is managing subscriptions. If you set up a subscription as durable, the broker will keep a topic message around until a durable subscriber comes back online.
    We are using ApacheMQ which allows you to implement some extended integration patterns using Apache Camel. I think I can use it to do something similar to your suggestion to verify receipts.
    Thanks again for you time.

  • I have iOS7 on my iPhone4. I turned on the Voice Over option and now my phone is not working at all. At first it was freezing and not accepting any commands. Now all I have is a blank sceen. I can't get back into it. Any ideas what happened here?

    I have iOS7 on my iPhone4. I turned on the Voice Over option and now my phone is not working at all. At first it was freezing and not accepting any commands. Now all I have is a blank sceen. I can't get back into it. Any ideas what happened here?

    Hi Jeffny01,
    If your iPhone is not responding, you may find the following article helpful:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Regards,
    - Brenden

  • Start the SLA clock for Service Requests Only After all Review Activities are Completed

    Hi all,
    I have a client who is looking for this functionality. At this stage I cannot think of a solution, certainly not a supported one.
    Does anyone have any suggestions?
    TIA,
    Joe.

    Hi,
    you can define from Which date the SAL shoukd be calculated, see this Post for more Informations:
    http://blogs.technet.com/b/servicemanager/archive/2012/02/07/notifying-before-sla-breaches.aspx
    So, you can add a custom Field, which will be filled with a SCO Runbbok, after all RA Activity are closed.
    Seidl Michael | http://www.techguy.at | twitter.com/techguyat |
    facebook.com/techguyat |
    youtube.com/techguyat

  • Enabling a button only after all other boxes on the slide have been clicked

    Hi,
    I am using Captivate 5 but I am fairly new to it and have very little scripting experience so I think what I am looking for is possible but I am not sure how to go about it!
    I have a slide with 10 click boxes which each link to a different slide with further information. Once the user has visited the additional slide they return to the original slide and can continue working through the click boxes to discover all of the information. This first slide also has a back and a next button to enable navigation through the rest of the project.
    Ideally I do not want to force people to click these boxes in a particular order and I do not want to prevent them visiting the additional pages more than once. However I would like to set up the page so that the next button will only be enabled once all of the click boxes have been pressed. At the moment, i do not have anything to stop the user just continuing through the project without reading the additional information.
    Any help would be much appreciated.
    Thanks,
    Mary

    Hi Lilybiri,
    Thanks for your reply,
    I think I would be able to use the second option of using buttons that became greyed out and then a next button appears on the slide once all of the pages have been visited.  Would you be able to send me the template please?
    I have a couple of other questions as well, I hope you don't mind! - Is it possible to do this using an image button rather than a transparent one or does this make it much more complicated? At the moment I have targets on the image which have a click box placed over them. It would be easy to change this to just the background image with the targets as image buttons but I am not sure I would be able to create the same style with the transparent button?
    I would need to increase the number of variables to 10, if I follow the same naming conventions etc would this be a relatively simple process?
    Finally I would not want the checkmarks to appear, how easy is it to make this change?
    Sorry for all the questions but I really appreciate your help!
    Mary

  • HP Officejet Pro 8500 A909g series wireless is only printing pink after all inks have been replaced

    I have changed all ink cartridges twice and it is only printing print and not entire page.  I have cleaned printhead, replaced all cartridges twice, aligned.   Shows on screen that all ink cartridges are full except on upper corner it is showing ink 1/4 full.

    Hi @vspivey,
    I understand your printed output is pink instead of black despite your efforts so far. I would be happy to help you from here.
    Although you have already cleaned the printheads, and changed cartridges, the following document might be helpful; Fixing Print Quality Problems for the HP Officejet Pro 8500 Premier (A909n) and 8500 Wireless (A909g....
    If the issue persists, you might consider calling us. We can check the price and availability of replacement printheads, and/or discuss the option of a newer printer model. If you are in Canada or US call 800 474 6836, or you can Contact HP Worldwide.
    Best of luck!
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Show link/button after all pages have been visited

    I want to make a course that branches out, so you can pick in which order you can learn about the different subjects, and at the end of each you will get the option to go back to "main screen"(this is also where you pick which subject to learn about). There are 4 subjects that have 1 slide with 6 slides under there again.
    What I want is to have a link/button on the "main screen" that allows you to go to the closing slide (just a plain thank you for your time etc), but I only want it to be visible after you've visited all the learning pages (4+(4*6)=28).
    I looked at advanced actions and conditional actions, but I didn't really find anything. Anyone have any ideas or work around? Thanks!

    This kind of thing has been explained many times on this forum.  In fact it's come up so many times over the past few years I'm quite surprised your searches didn't find anything about similar interactions.
    If your continued searches yield nothing, and you want a very detailed step by step tutorial on how to achieve such an interaction, I would suggest this e-book:
    http://www.infosemantics.com.au/adobe-captivate-advanced-actions
    It has a number of practice exercises with example CPTX files showing how this is achieved.

  • Show playbar only after all captions display?

    I am trying to figure out how I want my users to navigate, and thanks to lilybiri's answer on conditional actions I am able to make the playbar pop up if users hit different buttons - thanks again.
    But, here is what I can not figure out now.  I have another slide that I want to have all of the text and captions come up on timing (that follows narration), but then not have the playbar pop up until all of these have been displayed.
    In otherwords, I understand the conditional action that will show the playbar, but in this slide I have nothing to attach a conditional action too.  I just want the playbar to pop up after say 30 seconds, and let the user decide when they advance, but not let them advance prior to the entire page being displayed.
    Note: The slide automatically pauses because I have a button that pops up and allows them to view additional content, but I don't want that to be a mandatory button press prior to seeing the playbar (if it was mandatory then I could use that as the condtional action to shw the playbar)

    You need an event to trigger an advanced action, and timing is not an event.
    Why not create another identical slide, and have the playhead move to that slide after the first slide (with a timeline of 30secs) is finished?
    Lilybiri

  • Trigger a job after all jobs have completed

    Hi All.
    I have a program which schedules several jobs based on some complex criteria maintained in a config table. Some of the jobs scheduled can be  in a chain, some can be independent.
    At the end of all these jobs which my program spurned off, I want to run another program which will collect their spools and send it in one shot to a recipient.
    How can I know when all my jobs have completed? I know I can look at TBTCO table - but can I trigger the spool sending program automatically based on completion of all jobs?
    The point is I do not know which job can complete at the end - otherwise I could have triggered an event from that last job.
    Any clues please?
    Thanks in adv.

    Hi Aishi,
    There's a simple trick you can apply..There's no need for the third party tools for this.
    Create a custom table with the fields for p_Date(Primary Key) and the fields for each program of the background jobs.
    Update the custom table with the value 'X' after each program is succesfully completed and check for all the fields in the table if they are all updated and if they are all updated then trigger the final batch job with the Event using
    FM "BP_EVENT_RAISE'.
    Hope you understood the logic.

  • Decommission Exchange 2010 after all mailboxes have been moved to Exchange Online

    Currently very confused on what to do.
    I'm looking to migrate mailboxes to Exchange online using a Hybrid deployment with Dirsync. The users have multiple email and domain addresses. They are moving away from their SBS 2011 and Exch 2010 server. They have an AD and File and Print server. Once
    all mailboxes are moved and mx records are changed and everything is running smootkly. I would like to then decommission SBS and Exch 2010 box and still use DIRsync
    Few questions
    Once I remove Exch 2010 what wont I be able to do. Cant find anything specific online
    Will I still be able to create a user in AD then login to Exchange online and assign a license then
    the user would have mailbox
    Edit a user and add smtp email address.
    As I don’t have many users should I rather use PST migration or will I run into the same problems.

    Yes, you should move the arbitration mailboxes - they are organizational mailboxes, not mailbox database mailboxes.
    Make sure all Exchange resources and operations hosted on this server have been moved to your Exchange 2013 system before you remove Exchange from this server.  If you try to remove Exchange (in either the GUI or the command line) and something is
    still using this server, you will be alerted that something is still using the server and will be told what it is.
    HTH ...

  • How can I access data on an external drive in my mac after all folders have been turned into .lnk files? I am desperate!

    I don't know what happened, I connected my external hd today and all files had been turned into that!

    I know I am going to sound really stupid when I ask this, but how do I do that? There was this folder called Recycle Bin, which I have deleted already but the files are still in the same format. I know they are in the HD 'cause of the space taken up in it, but I would like to know exactly what to do to clear the malware altogether and have access to the stuff I have again.
    Thank you very much in advance and sorry for being such a dummy

  • Is it possible to keep Firefox open after all windows have closed (and to additionally open a new window when starting another Firefox process)?

    Yes, yes, I know, it's not good to keep applications open when they aren't designed to be. I'm sure Firefox has some memory leaks and this is doing more harm than good, but...
    My computer isn't the greatest out there, and to increase the usability of my Firefox browser it would be nice to keep the firefox.exe process open, even after closing all windows. I know Firefox doesn't totally close if there is at least one Firefox-related window open, but having to open X popup window seems a bit extreme to get this effect.
    Additionally, to allow another window to be opened, it would be cool for the "OH NO FIREFOX IS STILL OPEN" prompts to be replaced with just attempting to open a new window, if this feature is enabled.
    So, if it exists already, is there a config variable for it, and if it doesn't exist, is it possible to perform somehow? I'm not afraid to get my hands dirty if it comes to it; I'd really like to get this happening.
    I'm running Windows 7 Home, if it matters. (I'd rather be running another OS, but this is neither the time nor place...)

    LINK: https://addons.mozilla.org/en-US/firefox/addon/minimizetotray-revived/

  • Printing line only after all the records of line item are finished

    HI
    I have the following table :
    FieldA   FieldC       FieldD
    10           1               CM
    10           3               CCM
    20           6               M
    Right now i am able to print in samrtform like this
    FieldA   FieldC       FieldD
    10           1               CM
                   3              CCM
    20           6               M
    My requirement is this:
    FieldA   FieldC       FieldD
    10           1               CM
                   3              CCM
    20           6               M
    How can I do it?

    hi,
    when you work with smartforms, you can do this
    1. declare under the tab "Table" of your table-element, 2 lines with the same structure (1 linetype with the line under it, and 1 linetype without the underlining)
    2. under the tab "Data", at the Sort-criteria, sort on FieldA and mark the check-box "Event on Sort End"
    3. In your main-area you can use the linetype without the underlining
    4. In the area that is created for the event "on Sort End", you use the linetype with the underlining
    kind regards
    Tom

  • Spinning wheel on desktop after all applications have quit

    Ok.  My macbook is a little old (2008 operating system ios 10.6.8). So i am not shy to the various issues it's been suffering through lately.  But this one is new.  When I go to my apple icon to force quit an application that is making my computer run a little slow.  It says that Finder is not responding. So I forcequit it and now the spinning wheel wont dissapear from my desktop.  Every other application works fine.  And when I'm on safari the cursor is normal.  But heres the kicker.  When I quit safari. My tool bar on the top including my apple icon dissapeared and the spinning wheel is still on the desktop.  Something isn't right about it  I think finder is on the fritz.  Any suggestions would be greatly appreciated.  Trying to save this old lady.. Other than that she's doing pretty great.  Thanks a bunch

    try this;
    http://support.apple.com/kb/HT3964
    you could also consider adding more ram. take a look here;
    http://www.crucial.com/uk/store/drammemory.aspx

  • Where is my Inbox? ALl I have is a message about Thunderbird's 10th anniversary. Everything is blank, all folders. How do I get my messages and emails that I

    There's a big message from Mozilla in my Inbox that asks for involvement . . . I am not able to do that; I have no expertise. I only want to be able to open my Inbox, read messages, reply to messages, and store those I want to store in local folders. But Mozilla's notice of Thunderbird's 10th birthday is blocking me from doing anything . . . I can't even close out of it (there's no 'x!'). Please help!

    In the Thunderbird Menu, check these settings:
    View|Folders|All
    View|Layout|Folder Pane
    No menu? Hold down the <alt> key, tap V.

Maybe you are looking for

  • Multiple devices with one iClould account - Please help

    My husband and I use the same iCloud account. If we both do a back-up, get new devices (we're looking at upgrading our iPhones), and log back into iCloud, will all of his stored info show up on my phone. We don't want that to happen, but we would lik

  • Apple TV on tv with receiver - not working

    Hi...are there any tricks to setting this up?  Tried hdmi from Apple TV into receiver....worked for 1 day, then "no signal " (on ANY input/HDMI tv port) - by the way, I got a HULU 3 for Xmas  and the exact same thing happened.  Only worked for 1 day.

  • Question on hyperlinks in PDF

    When you save a WORD file into a PDF file can you save the hperlinks in the WORD document?

  • Should I upgrade to Intel? Or stay on Power PC?

    Hi all. I have a problem and was wondering if you all could help me out. I currently own a Dual 1.8 G5 Power PC Mac. I'm debating on weather I should just do some minor upgrades (like up my hard drive space and max out my memory) or if I should start

  • How to codepages in Data Integrator

    Data Integrator sets the codepage at the job server and the datastore layer. Each job server, which is the Data Integrator "engine" where all of the processing takes place, has a single codepage. In addition, each datastore has its own codepage. The