Why are there pending messages that can't be consumed?

Hi all,
I am using Glassfish with a self made monitoring/stress-testing application.
In this app I can define consumers and producers, so I can somehow see the behavior of the system under many different conditions.
But something odd is happening: there are always 1000~2500 messages that I can see that they are there but I can't consume them. I have checked in my admin console and they are shown in the
"Number of Messages Pending Acknowledgment - Current number of messages being held in memory and persistent store pending acknowledgment".
Why they are pending acknowledgment? I sent them in the same way I did all others, and they all worked.
I found this link, they are all having similar problems, but they are using ActiveMQ. http://fusesource.com/forums/thread.jspa?threadID=1060
Could anyone help me to find out why this can be happening?
Edit: Could it be that the acknowledgement of a consumer is not getting back to the queue and the queue is reserving the message to that consumer, so nobody else can consume it?
Tks,
Oscar
Edited by: 808621 on 6/Jan/2011 2:02
Edited by: 808621 on 6/Jan/2011 2:47

Hi!
Thanks you both for the answer. I just figure it out with help of your replies: I was using many threads to consume the messages, but these threads were sharing the same "MessageConsumer" object, what was causing the pending messages. Once I changed to have one MessageConsumer per thread, it worked.
Thanks you both for the help :)
Oscar

Similar Messages

  • Are there any genres that can be added like "New Age"

    I would like to use the Magic options but would like to have a more "mellow" result.
    Are there other genres that can be downloaded and added?

    Pondini wrote:
    Where did you see that?  Disk Utility should be able to do it, if the empty space is at the end of the drive.  See #4 in Using Disk Utility.
    I haven't done it with an encrypted OSX partition, but have with an encrypted Time Machine partition.
    In DiskUtility, you see the following message: "Disk Utility cannot modify this disk because it contains CoreStorage physical volumes.  Use command line diskutil instead." 
    And when I try to resize with diskutil:
    # diskutil resizeVolume /dev/disk0 limits
    Volume format does not support resizing
    So as far as I can tell, my only option is to decrypt and resize.  Eeeks.  Took 15 hours to encrypt, so will take at least as long to decrypt, and then resize and re-encrypt.  Am looking for a faster solution.
    Thanks,
    Eric

  • I wanted to ask whether the camera for ipod touch comparable to a digital camera? if not are there apps available that can turn it into a digital camera? i want to buy an ipod touch and i like photography....what should i do?plz suggest

    i  wanted to ask whether the camera for ipod touch comparable to a digital camera? if not are there apps available that can turn it into a digital camera? i want to buy an ipod touch and i like photography....what should i do? plz suggest

    The iPod touch has a very rudimentary camera.  It has only a 0.6 MP resolution, no optical zoom, no flash, etc.   There is no app that can improve this as it is limited by the hardware. So it is not a replacement for a digital camera (nor even for an iPhone whose camera has a 5.0 MP resolution.

  • My iphone 4s is charged and I can tell that its on but my screen remains black. Are there any tips that can help before taking it in to the apple store?

    I've already tried turning it on and off as well as pressing the sleep/wake and home button together to restart but nothing has happened :/
    This is also the second time its happened to my phone as well, the first time it miraculously turned on by itself after an hour

    Hi katherian!
    I have an article here that can help you troubleshoot this issue:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Are there additional Titles that can be downloaded?

    Coming from the Sony movie studio, I'm sorely dissapointed at the quality & quantity of titles.
    Has anyone made any additional ones that can be downloaded & used?
    For example: I'm using the 'extreme_lower3rd_hd' title found under 'HD Templates'.
    It's an OK title, however I would like to see the graphic portion in another color (red or green). Is there anyway to change this?
    Thanks,
    Levi
    PE12

    I know that there are addition PrE Menu Sets, available for a paid subscription, or for sale individually for a fee, from Muvipix.com.
    I do not recall seeing any Title Templates there, but might have missed them?
    I also do not recall seeing any additional Title Templates on any other Web sites.
    Premiere (both Elements & Pro) use the .PRTL (Title Template) format, so can only be used in Premiere. I know of no other programs, such as Photoshop, Painter, PaintShop Pro, etc., that can Open and edit .PRTL files - only Premiere.
    Now, one CAN create titles in other programs, to be used as Still Images in Premiere, BUT to make changes to those, one needs to take them back into the creating program, or similar, and the Titler/Title Editor in Premiere cannot edit them, though there ARE things that can be done, such as creating a Title, in Titler, to overlay the title with say new elements (Shapes for instance), or additional Text, but that is all that can be done in Premiere.
    Maybe others will know of sources for .PRTL files, but I have not found them.
    Good luck,
    Hunt

  • Why are my text messages that i am sending going thru as emails now and recipient does not receive?

    I recently synced my I phone to install the recent upgrade. Nwhen I send a group text message,  that I did previously with no problems, now some of my recipients do not receive.  They are telling me that it looks like I am sending them an email.....????? I'm totally lost.  I changed nothing on my phone other than doing the upgrade.  Any advice???

    Thank you.  I think I am on to something.  Went thru with your instructions and the receive at is my email address......my phone number is in light gray and says error.   I cannot open it to change it.

  • Are there any services that can be removed for a smartphone line that hasn't been used since June of last year?  I can't afford the $300 cancellation fee.

    I'm in a very tight financial spot, and was hoping I could cancel text, or something.   My son hasn't used his phone since he got his own service in June of last year, and it's just silly to continue paying for it.  Very curious how the account continues to show text messages connected with the phone. 

    You might look into one of the services that helps match you up with a buyer that wants a phone and willing to take the contract with it (such as celltradeusa.com for instance).  I am listing this site only as an example, there are others as well.  Or alternatively find a friend or other family member who wants the phone and again willing to accept the contract with it.  It is legal and allowed by Verizon (and other cell companies) to transfer the contract to another person.

  • Are there any files that can be broken down by instrument except MIDI?

    If there isn't what's the most effective way of sampling? Because that's all I know how to do so far! THANX

    I think nobody seems to understand your question. Especially what you mean by "broken down by instrument".

  • Are there any plugins that allow photoshop elements to read DDS files?

    I have multiple DDS files that I have been trying to open in Photoshop Elements 8, and a window comes up and says that it cannot open it because it is the "wrong type of file".  I would like to know if there are any plugins I can download to fix this problem.  It would also be helpful if the plugin could save the file in a DDS format, too.  I had been using a trial of Photoshop CS6 and I had a plugin for that, and I recently found an old disc that had Photoshop Elements 8 on it that I downloaded.  Back to the point, are there any plugins that can do this?

    The 32 bit version of this plugin should work in pse 8 if you on windows:
    http://developer.nvidia.com/nvidia-texture-tools-adobe-photoshop

  • Are there any apps that install animated lock screens without jail breaking my iPhone 5?

    Are there any apps that can install animated lock screens without jail breaking the iPhone 5?

    I don't know of any way, except perhaps by using an animated GIF or PNG as your wallpaper. I've never tried it, though.
    I don't recommend jailbreaking your phone, voiding your warranty, and risking ruining the phone just for this feature, however - http://support.apple.com/kb/HT3743

  • HT201774 How do I delete excess email messages from my iPhone.  There are 300 messages listed, and every time I delete some, more are added from old messages.  How do I limit the number of messages that can appear on my phone?  How can I delete messages i

    How do I delete excess email messages from my iPhone.  There are 300 messages listed, and every time I delete some, more are added from old messages.  How do I limit the number of messages that can appear on my phone?  How can I delete messages in bulk,

    You can't.
    All photos transferred from your computer are stored in the Photo Library. The photos in the album or albums below are not duplicates - they include a pointer to the original photos stored in the Photo Library. This way you can view the photos in a particular album only by selecting the album, or you can view all photos available in all albums by selecting Photo Library.
    Just as with an iTunes playlist. A song cannot be in an iTunes playlist unless the song is in the main iTunes library. Placing a song in a playlist does not duplicate the song. Remove the main iTunes library or the songs from the main iTunes library that are in a playlist and the songs will no longer be in the playlist either. This way you can listen to the songs in the playlist only by selecting the playlist, or all songs in your entire iTunes library by selecting Music under Library in the iTunes source list.
    The same with iPhoto on a Mac. A photo cannot be in an in iPhoto Event or Album unless the photo is in the main iPhoto library. Placing a photo in an Event or Album does not duplicate the photo. This way you can view the photos in an iPhoto Event or Album only by selecting the Event or Album, or all photos in all Events or Albums.

  • Why are there ads in games that I have purchased?  Can I get rid of these ads?

    Why are there ads in my games that I have purchased.  How do I get rid of the ads?

    The developer participates in the ad program to provide income, usually in exchange for offering the application for free or at a low price. Some developers offer an ad-free version of the app at a higher price, so you might look for that possibility.  If they only offer a single version, though, then you're stuck with the ads, though you can urge the developer to offer an ad-free version as well.
    Regards.

  • How can I use the Creative Cloud without having a Credit Card? Why are there no other possibilities?

    How can I use the Creative Cloud without having a Credit Card? Why are there no other possibilities?

    Hi @DRB1961, 
    I do not think the Zeen will work if you no longer have the C510 printer. The printer is necessary to ensure the Zeen is up to date. The Zeen is simply not a standalone device, it is a component of the printer.   I can not say this with certainty that it will not work, so it is worth trying to reset the Zeen to finding out for sure.
    When you see this message, "must dock the Zeen to the printer to continue", can you access the settings using the 3rd icon above the touch screen? If so we can do a factory reset, if not there is no other way I can think of to bypass this message.
    I just tried a reset on a Zeen I have access to, after the initialization, it prompts me to attach the Zeen to the printer to continue with product setup. it appears my original speculation was correct. No, you can not use the Zeen without the printer.
    Clicking the thumbs up below helps show me that you are grateful of my efforts   If you have any additional questions, I am happy to help.
    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

  • HT1386 why are there 0's in some folders that i put photos in in iPhoto when I veiw it in iTunes?

    why are there 0's in some folders that i put photos in in iPhoto when I veiw it in iTunes?

    Those files should be being created in folders of the form:
    <User's Music>\iTunes\Album Artwork\Cache|Download\<GUID>\<##>\<##>\<##>
    The <GUID> in your case is 0CDB362F24AD473A...
    If they are appearing anywhere else I would suspect a permissions problem. iTunes just spits them out where it can. Similar problems can sometimes cause it to drop files on the desktop.
    Repair Permissions
    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and system full control to this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
    Once you've repaired the permissions search for all files of the form *.itc2 in the music folder and delete them, then start iTunes. iTunes will rebuild the artwork cache in the correct location as you scroll through your library.
    tt2

  • HT204150 Why are there contacts on my iPhone that are not on my Mac (syncing through iCloud)

    Why are there some contacts on my iPhone (and my older Mac) that aren't getting synced onto my new MacBook?

    First check that all your settings are correct, that contact syncing is checked on all devices (system preferences > iCloud on a mac and settings > iCloud on a iPhone, iPad or iPod).
    Make sure the contacts you are adding are added to your 'iCloud' group and not an 'On My Mac', 'On My Phone' or other non iCloud group (you can do this by checking in groups), non iCloud contacts will not sync.
    If you are sure that everything is set up correctly and your contacts are in the iCloud group, you might try unchecking contact syncing in the iCloud settings, restarting your device and then re-enabling contact syncing.

Maybe you are looking for

  • Displaying thumbnails in Bridge CS2

    Hello, I've organized the photos from my Canon Digital Rebel XT in Adobe Bridge CS2 (Version 1.0.4.6) for years without a problem.  I shoot in RAW and those files are approx. 7 MB in size.  I recently received a Canon T3i and the files sizes are appr

  • Is my uh... battery suppost to flop out?

    Hello my friends, I'd like to tell you of the wonderful things that has happened to me over the past year with myself and my iBook G4. I got the machine back in February of last year from Amazon.com, they were having a really good deal so I said "Wha

  • BSEG Table maintenance

    Dear SD Gurus, We are not able to see entries related to Material and material quantity in BSEG table. I am not sure why these entries are not coming in this table. As far as my knowledge goes BSEG table is a cluster table and an important part of th

  • Need help in currency translation

    Hi all; I am using this program RSIMPCURR for currency translation in my process chain, it was working in Dev but when I transfer this into QA it's not working because the varient I am using for this is still using source system in for Dev. ; I need

  • CAN I RUN 2 VERSIONS OF FIREFOX (4.0 & 3. SIMULTANEOUSLY ON MAC OS X? HOW ?

    How can I install 2 versions of Firefox, 4.0 and an older one, simultaneously on my Mac under OS X 10.6.7 ?