How to dequeue messages that were enqueued when app was offline

I have 2 question. The following is the scenario -
I have 2 different process. Process A and Process B.
Process A enqueue's the message in the message queue.
Process B dequeue's the message from the message queue.
1) Process B shuts down for some time but Process A continues to enqueue the message in the queue. When Process B comes back live how to dequeue the messages in the message queue that were posted by Process A when Process B was offline?
2) The queue that I am using is multiple consumer queue as there needs to be more than 1 Process B to dequeue the message. The logic behind the design is if one of the process B dies the other process B can still continue to process. At the same time if 1 instance of Process B has picked up a message it should notify other Process B to not process the message.
I coudn't find any samples. Any help is greatly appreciated.

Hello,
The messages that process A enqueues and are not consumed while process B is down will remain in the queue until process B restarts.
It sounds as though you don't need to use a multi-consumer queue as all you appear to want to do is consume the messages as quickly as possible. Is that correct? If it is you could have multiple process Bs consuming messages from the same single consumer queue. Messages that one process is consuming will not be available to another and this is handled internally.
You can also have multiple processes consuming messages associated with the same consumer on a multi-cosnumer queue and the same applied.
Or you could have multiple processes on a multi-consumer queue associated with different subscribers which are all interested in the same message.
What you use depends on what your design requires but each message will be consumed only once in the case of a single consumer queue and only once per subscriber/recipient in a multi-consumer queue.
Thanks
Peter

Similar Messages

  • How to recover messages that were sent to me when iMessage was turned off?

    iMessage on my phone somehow got switched off while I was traveling abroad.  I didn't realize it about a week after I got back to the US (and realized I wasn't receiving texts from certain friends).  How can I recover those texts that were sent to me while iMessage was turned off?  They didn't show up when I turned it back on like I expected.

    If they are queued up they will just be delivered when you turn iMessage on again
    However they may have been sent back as unable to be delivered back to the sender
    No way of knowing for sure

  • Since upgrading to v4, firefox reopens all tabs that were open when it was closed.

    Firefox 3 always opened with just my seach home page, even if several tabs were open when I closed the browser. Now since upgrading it remembers all my open tabs and reopens them when firefox loads. I've checked my settings and it is set to "Show my homepage". I have even changed the setting, closed the browser and set it back, but it still keeps opening all the old tabs.
    How can i stop this, it is driving me insane. :)

    This can happen if Firefox didn't close properly the previous time.
    Does this still happen with browser.sessionstore.max_resumed_crashes set to 0 as that should bring up the about:sessionrestore page to choose which tabs and windows to restore?
    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox profile folder that store session data.
    Rename (or delete) the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox profile folder.
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    *http://kb.mozillazine.org/Multiple_profile_files_created
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost and you will have to recreate them (make a note or bookmark them if possible).

  • I have an Iphone 3Gs. I need to get contents of messages that were sent and received on the phone in June for evidence in court. I read online that the Iphone internal storage keeps all data done on phone in the storage. How do I get into it?

    I have an Iphone 36s. I need to get contents of messages that were sent on the phone in June of this year. I read online that the phone has an internal storage that keeps all data when phone is used and that this internal storage can be accessed. I need the contents of particular messages for evidence in court. How do I get into the internal storage? I've tried some of the methods that people post online, but none of them have been successful. Help!

    If you still have a backup from that point in time as part ofr your computer backup history, you could restore the backup folder, restore the phone from that backup and have the messages on the phone.
    More details about restoring from old backups can be found here: iPhone and iPod touch: About backups

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • How can I get Safari 5.1 to open without opening all the tabs that were open when i last quit safari?

    When I lauch Safari (5.1 in 10.7) I want it to open to either an empty page or a designated homepage - but istead it opens all the tabs that were open when I quit Safari.  How do i stop this, I cant find any preference to achieve this and see nothing in help.  Any help?

    Hi James - Thanks for the info!  This has been bugging me, too.  I'm going to uncheck the Restore Windows box.  Agree with you that it should be app specific, tho.  I like opening to the last page I was working on in pages and numbers.  Hope it doesn't change that!

  • HT201317 How do I move photos that were taken when photo stream was turned off into the photo stream on my iPad2?

    How do I move photos that were taken when photo stream was turned off into the photo stream on my iPad2?

    You will need to do that by syncing them with a computer and then syncing the computer with the iPad.

  • What is this message, and how can i fix that problem? when i want to update or restore my cell, this message is coming: (An unknown error occurred (1480))

    What is this message, and how can i fix that problem? when i want to update or restore my cell, this message is coming: (An unknown error occurred (1480))

    I am getting the same error message. Have you figured it out?

  • My iPhone had a feature that appeared that anticipated words when I was sending a message.  It has disappeared.  How can I get it back?

    My iPhone had a recent feature that anticipated words when I was messaging.  I has since disappeared.  How can I get it back?

    Use Settings > General > Keyboard > Predictive and turn this ON.
    If it is ON drag up on the top center of the keyboard (where a small line appears) to reveal the predictive panel.

  • How can I make my computer restart with all the same windows that were open when a shut it down?

    How can I make my computer restart with all the same windows that were open when a shut it down?

    That is the way Mac OS X 10.8 (aka Mountain Lion) works by default. Are you actually running that system? (See About This Mac in the Apple menu.) If so, make sure the check box in the shut down alert is checked:

  • Phone died. How do I retrieve text messages that were on phone?

    Phone died.  How do I retrieve text messages that were on phone.

    Unfortunately, unless you had them backed up and stored elsewhere (like on the SD card or your computer), they most likely aren't retrievable.
    Are you sure the phone is completely dead?  Have you tried holding the power and volume down buttons simultaneously for 15-20 seconds to see if that will reboot the phone?

  • How can I suppress a message that remains stuck when I open my lap ?

    How can I suppress a message that remains stuck when I open my lap ?

    What sort of message?
    Are you really still running 10.6.2, as noted in your profile? You really should update your system to 10.6.8 -> http://support.apple.com/kb/DL1399.
    Clinton

  • When I close and reopen firefox, it restores my tabs, but it restores tabs from hours or days ago, not the ones that were open when I closed the window - why?

    I normally keep my Firefox window open for long periods of time because I have a lot of active tabs. When I close the window and reopen it, I am still able to restore tabs, but as of a few weeks ago, it has stopped restoring the most recent version. Normally, when I would close and reopen, the tabs would be the same ones that were open when I closed the window. Now, it restores to a version from a few days ago instead of the current version. I have to revert to pulling my more recent tabs out of the recent history. I checked my options and I can't figure out any way to control this. How can I fix it so that I can count on my Firefox window to restore the tabs that I actually care about?

    You can check for problems with the sessionstore.js and sessionstore.bak files in the Firefox Profile Folder that store session data.
    Delete the sessionstore.js file and possible sessionstore-##.js files with a number and sessionstore.bak in the Firefox Profile Folder.
    *Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    *http://kb.mozillazine.org/Multiple_profile_files_created
    *http://kb.mozillazine.org/Session_Restore

  • Can I recover emails that were blocked when my storage was full?

    The storage on icloud was full for me for perhaps a number of days. I bought extra storage (20GB) and my emails are now working, but how can I recover the emails that were blocked when my storage was full?

    Yes.  I tried the refresh and checked the uninstall tab.  Still nothing.  Another thing though - when I entered my Blackberry ID, it would not let me use my screen name because it was supposedly already in use.  But I knew that because it was in use by me.  It would only let me use the same name with a numerical suffix.  So I am wondering if it thinks I am still logged on from before the upgrade.  Also, is it possible the Playbook thinks I am some other use and won't let me access my files - like photos and videos, etc.

  • [svn:bz-4.x] 16147: Fix a few more regression tests on the 4. x branch that were failing when using Spring integration.

    Revision: 16147
    Revision: 16147
    Author:   [email protected]
    Date:     2010-05-17 06:18:38 -0700 (Mon, 17 May 2010)
    Log Message:
    Fix a few more regression tests on the 4.x branch that were failing when using Spring integration.
    Modified Paths:
        blazeds/branches/4.x/qa/apps/qa-regress/WEB-INF/src/runtimeconfig/remoteobjects/ROMessage Destination.java
        blazeds/branches/4.x/qa/apps/qa-regress/WEB-INF/src/runtimeconfig/remoteobjects/RuntimeCo nfigurator.java
        blazeds/branches/4.x/qa/resources/webtier/flex_sdk_4/flex-config.xml

    Well heres my story. I tried kde4 from extra the last 3 weeks and I like it. I have used xfce for the past 3 years, previous to that gnome. Tried kde but never really liked it. Now I am only using workspace, base, mutimedia and graphics.
    Here is what I like.
    1- Dolphin, awesome I have used thunar a while and it is great but I love splitview, and fish for ssh (which has been around a while I know), and the ability to mount other partitions on my hdd with a click no fstab entry or nothin'.
    2-Pretty, I've used xfce with built in compositor an love the snappiness. But I like desktop grid with kde4 and flipswitch. Compiz-fusion is cool but I prefer not to use I'll take what the DE gives. Plasmoid are cool too.
    3- Gwenview is nice too. Use to use gqview, but thumnails are nice.
    Looking forward to or lacking
    1- Keyboard shortcuts, Yes xbindkeys is there but if I have a DE I want it to do it. They just don't work now.
    2- kde4 has windows specific settings, but I can't set the opacity for particular windows , doesn't work.
    3- Ram of course is much higher in kde4, but maybe I'm getting old I just don't care as much.

Maybe you are looking for

  • Mail unexpectedly quits after I click on it

    Never has this happened before. I click on my mail. It pops up and then disappears with an air message that says: " The application Mail has unexpectedly quit. The system and other applications have not been affected." It does this every time. I've i

  • Can't get rollover images to work as links [was: I have a question if someone could answer?]

    I have fixed my page so I can preview it and everything is working fine but now I cant get my rollover images to work as links.  When I go to put in the link like normal the rollover behavior stops working and it is just the original image.  Any way

  • Header not taking style in Safari

    Anyone who's slightly HTML/CSS savy want to take a look at this page and tell me why the h1 at the top doesn't like to be styled completely? (hint, it's blue, it's the right size, it's underlined, the rest of the page text is the right family...) Hmm

  • Need to split partition my Mountain Lion HDD with Lion.

    Hi all, My MBP was shipped with Lion, I bought Mountain Lion and upgraded. However I now need to install Lion onto a partition of my HDD for my Firewire mixer (Phonic Helixboard 12 MKII). This mixer doesn't work with Mountain Lion sadly as they said

  • IPhone Feedback - is anyone listening?

    Love the concept, now waiting for the following updates: 1. ActiveSync - Support for push exchange mail. This is a must-have, or else I have to revert to my blackberry (not so cool, but email usability is way better than iPhone mail). 2. Mail usabili