When does a  message be acknowledged actually

How Can a message be acknowledged
Say that i had created a QueueSession using the
QueueSession createQueueSession(true,client_acknowledge)
If i post a Message , please tell me when does it gets acknowledged ??
Either
1. When Successfully Posted to The Queue
Or only when the Consumer Recievies that Message using that Message using the recieve Method .

In the call to QueueSession.createSession(boolean transacted, int acknowledgeMode), the acknowledgeMode parameter indicates how incoming messages will be acknowledged. If you set it to Session.AUTO_ACKNOWLEDGE then the message will be automatically acknowledged when it is received by the consumer. If you set it to Session.CLIENT_ACKNOWLEDGE then the message will not be acknowledged until the receiving application explicitly calls Message.acknowledge().
Note that this behaviour concerns only the delivery of messages from the JMS server to a consuming client. The acknowledgement is sent from the consuming client to the server. The server then knows that the message has been successfully delivered and can delete it from the queue.
The client that sent the original message knows nothing about any of this.
Nigel

Similar Messages

  • When and how does the message context get removed from the message when we use pass thru send port

    Friends,
    i have a doubt regarding message context.
    Assume i have used XMLRecieve pipeline in the receive side to receive the message so that the message context is created. I.e properties are promoted/written.
    now if we use pass thru transmit pipe line at send side, how and when does the message context get removed from the message?? Since pass thru does not have any stages/components, how does the message context removed and sent out a pure message to destination???
     i mean what exactly happens here to remove the context??
    Ravindar

    Thanks for the reply.
    "The Context is created by the Adapter, regardless of any Pipeline or Pipeline Component.  It has nothing to do with PassThrough vs. XmlReceive, although XmlReceive will write Promoted Properties to the existing Context,
    as can any other Component."
    yeah yeah, adapter does create some properties in context. You are right, i am aware of it. I just missed to explain it clearly. what i meant is addition of context properties will not happen if pass thru used. Thanks its clear.
    "No.  The Context already exists on the Message when it comes from the MessageBox and
    is equally available to any Component in any Stage.  The Context that hits the Pipeline is whatever was last Persisted, either by a Receive Port or Orchestration.  It is not created by the XmlAssembler (XmlTransmit)"
    You are right , the context already exists on the message while it leaves the receive port, and once it persists
    to message box the context and message context gets stored in messages in relative tables.
    Now as you said the components get the message from the last persistence, assume i have a send port(with passthru)
    subscriber and a orchestration subsrciber for this message.
    Orchestration gets the message with context right!!
    if the send sendport(with passthru) also gets message along with context, then where is this context removed/demoted
    while sending it out?.  i guess as per SAAkhlaq said,
    here sendport(with passthru) should get a pure message without context as passthru used. 
    or is it that ultimately send adapter removes the context completely?
    or is it something like biztalk run time load the context from database into cache and both orchestration and send port gets pure message, and if needed they use context from cache???
    sorry i may be troubling you, but i am confused. i hope i am not creating any nuisance with this
    post.
    Ravindar

  • HT5594 Does location services show your actual address when at home

    Does location services show your actual address when at home

    I should also mention that my wife got a phone the same time I did. Sometimes her's will show the same problem, and then sometimes her's will work fine while mine is right next to her's and not working. This type of behavior would point to a problem with the device and not the service. But then the fact that mine DOES work at times would indicate a software/service issue. I've heard others say that behavior will change when WiFi is turned on or off or when airplane mode is turned off and on. I haven't really noticed that. It's a hard one to figure out. Hopefully it is something with the software/service that will simply be solved with updates.
    Message was edited by: Fivepi

  • "Connect to iTunes to Use Push Notifications" comes almost in every app that I open and it does not notify me when I got message in Whatsapp and Viber. Please help me to overcome it, it is becoming quite annoying!

    "Connect to iTunes to Use Push Notifications" comes almost in every app that I open and it does not notify me when I got message in Whatsapp and Viber. Please help me to overcome it, it is becoming quite annoying!

    Did you get any help on this? From what I can see from surfing this site, it's a BUG that no one has offered a solution to. It sometimes happens after a 'reset' and going to ITunes does not offer a way to 'set up push notifications'.

  • ITunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working

    iTunes crashes when doing a power search. I get a Microsoft Visual C   Runtime Library Error message: Program C:\Program Files (x86)\iTunes\iTunes.exe R6025.  Pure virtual functional call.  If I select ok, Windows 7 pops up with iTunes has stopped working and then it shuts iTunes down.  Anyone else every have this issue.  Any ideas on a fix?
    Thanks,

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    tt2

  • Record chat not seen as option in OS X Mavericks Messages when doing video chat

    In OS X Mountain Lion when doing a video chat using Messages one can record the video chat. (assuming you have permission by the other party (parties??))
    I do not see that option in the "upgraded" OS X Mavericks.
    Is the lack of a record video option another "hidden" gem that Apple is providing us by creating "simplicity"?
    Or is the feature still somehow accessible thru a more "simple" means other than the way it used to be in OS X Mountain Lion?
    So, if Apple has deliberately and secretly removed this feature without telling me do you know of good screen-capture software that I can use as a workaround with regards to this missing feature?

    for the   Points.
    7:18 pm      Sunday; January 26, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • When playing my ipod on an ipod dock the vocals are very faint. It is fine when doing through the headphones. I am trying to sync for updates and getting the message "An unknown error occured (-1)" - help

    When playing my ipod on an ipod dock the vocals are very faint. It is fine when doing through the headphones. I am trying to sync for updates and getting the message "An unknown error occured (-1)" - help

    Error -1
    Attempt to restore your iOS device two more times. If the issue is still unresolved, the device may need service.
    The "device may need service" means a hardware problem. In that case make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar
    Also see:
    -1 error
    -1 error too

  • HT3204 When doing a "Network Connectivity Test" on my PC, as to iStore Connectivity, it says "Secure Link to iTunes Store failed". And when trying to "authorize" my computer to sync ringtones I downloaded to my PC, I keep getting an errot message.

    When doing a "Network Connectivity Test" on my PC, while in iTunes, it tells me that "Secure Link to iTunes Store Failed", yet I'm connected to the internet.  I was unable to "authorize" my PC with an error message, as well, giving me the code (-3212), saying I was not connected to the internet, yet I am.  I can open browser after browser, and navigate just fine.  In going through the iTunes Help menu, I am running the tests offered in the drop-downs, but I keep getting the afore-mentioned errors.

    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Why does this message keep appearing when i try to instal windows 7 through bootcamp? - "something went wrong and the USB cannot be configured for the installation"

    Why does this message keep appearing when Itry to instal windows 7 through bootcamp? - "Your bootable USB drive could not be created. An error occurred while copying the Windows installation files."

    Found a solution!
    Follow the extended version of these directions here:
    https://discussions.apple.com/docs/DOC-3581
    Worked like a charm!

  • Error Message when doing a Stock transffer using Mvt Type 309  using MIGO

    Hi Team,
    I am getting an error message M7-441 "Selection by multiple account assignment was not restricted", when doing a stock transfer.
    I am not able to understand the exact issue here, any help is appreciated.
    Regards
    Raj

    M7441 seems to be a new error message which came with EHP4
    I can only see that it is used in MB51 report (do you search for material documents in MIGO when you get this error?)
    according to the coding in my system this is just a warning message, not an error message, hence you could continue by cklicking the okay icon.

  • Defer log shipping and RMAN-08137 message when doing archivelog backup

    Hello,
    in a Primary & Dataguard scenario in which we set to DEFER the log shipping to the Dataguard during a high impact process done in the Primary, we receive the message "RMAN-08137: WARNING: archive log not deleted as it is still needed" when doing archive log backup with rman.
    Is it the expected behaviour due to the DEFER status with the Dataguard? or even in this scenario  we might we able to delete the logs and therefore we have to look more in deep to find our problem?
    Thanks in advance for your help.

    Hello,
    Had a look on v$archived_log and found the archivelogs that are not deleted and the state for them is
    DEST_ID=1 
    STANDBY_DEST=NO
    ARCHIVED=YES
    APPLIED=NO
    as http://docs.oracle.com/cd/B12037_01/server.101/b10755/dynviews_1015.htm says , they are all Local, were archived and there is no apply needed for them as they are not defined to go to the StandBy Database.
    Therefore, why can not still archive them?  How can we check if they had been processed by a Streams process?
    Regards

  • When I use messaging there are only two users who automatically go green (MMS?), and are undeliverable. I can't seem to change this. What am I doing wrong?

    When I use messaging there are only two users who automatically go green (MMS?), and are undeliverable. I can't seem to change this. What am I doing wrong?

    I use message and all other messages are non-sms. When I try to message these two accounts, they automatically use sms, everything I do is the same. The non-sms messages go through just fine (including pictures). The sms messages (no pictures) are always rejected; they have never gone through. They have never been able to send messages to me either (although they can send to others). I have a Verizon cellular data plan.

  • When doing catalog backup get message " your system is low on disk space, and elements organizer can

    When doing catalog backup get message " your system is low on disk space, and elements organizer cannot perform the operation.  If create a catalog with 20 pictures backup works OK.  backing up to a 1TB external drive.  Have 16705 pictures in catalog.  Total disk space for pictures is 192 MB.  Why am I getting message?

    kdrozzen a écrit:
    Total disk space for pictures is 192 MB. 
    Do you really mean MB (megabytes) or GB (gigabytes) ?
    Even if its GB, the free space may be enough, depending on your files size, especially with videos or raw files.
    When you start the backup process, it first shows you the total size of the catalog.

  • What does the message "Another program has control of HP imaging device mean"?  I get this when I am trying to scan.

    What does the message "another program ha control of HP imaging mean when I am trying to scan something. How do i correct it?

    You may need to ask HP. I had the same issue with a networked (via ethernet) home HP multi-function. Sometimes the only way to get it to scan was to completely disconnect it from the network and connect it to only one Mac with a USB cable. Even that did not alwatys work.
    Eventually, Apple started pushing out HP printer updates via Software Update. One of those finally made that error message to go away.
    So run Software Update and see it there are new drivers that Apple made avaialble.

  • HT1430 When sending a message to some email recipients, appears the following message "The recipient X was rejected by the server because it does not allow relaying.

    When sending a message to some email recipients, appears the following message "The recipient X was rejected by the server because it does not allow relaying.

    See the previous discussions on the right side of the page under the heading "More Like This". The one with the green checkmark was solved.

Maybe you are looking for

  • Reporting Services Registry access error

    We have an existing setup of SQL 2014 & SP 2013 Foundation server which works fine without any issues. Then, we have been installed the following components into SQL Server Reporting Services – SharePoint Reporting Services Add-in for SharePoint Then

  • Dock won't hide/show after Tiger security update

    I installed the Dec 27 Tiger security update last night (via SW update) and now the dock is behaving badly. I had it set to automatically show/hide, but it would not show anymore after the update. I always install sec updates, so I did also do the pr

  • Can't find funds in campaign

    scenario : I create a campaign C-00000041 under the marketing plan M-00000041. I have assigned the funds plan21 to the campaign. Question: When I try to assign funds to this campaign, there is no funds in the pop-up windows. can anyone give some info

  • EM Console Not Working

    Hi all I Installed Oracle 11g R2 in Windows Server 2008 R2 System.. I have two databases as CSDB & ITMS Now i hav problem with CSDB EMCONSOLE, and ITMS EMCONSOLE Working Fine... While creating New Repository am getting the below errors.. C:\>emca -co

  • Firefox 3 and layout.css.dpi

    hello, after an Arch update, Arch offered me Firefox 3 to replace Firefox 2. In the version 3 I realized I can no longer use the layout.css.dpi variable in about:config, which controls the size of rendering fonts. Now I use the -lcd versions of font