How message acknowledgement works??

Hi everyone,
I am using Sun Message Queue 3.5 Platform Edition. The messages are remaining in the Queue. According to me, the messages should remain in the queue if they are not recieved by the listener and acknowledged. Please rectify me if I am wrong.
I am using PTP. I am using following method called while cerating Session
QueueSession queuesession = conn.createQueueSession(false, Session.CLIENT_ACKNOWLEDGE );
And using following code while sending the message:
queueSender.send(message);
Or shall I use the following:
queueSender.send(message, DeliveryMode.PERSISTENT, 0, 0L);
I am trying to send the messages to the queue, the listener to the queue fetches the data from the queue and stores in the database. What I want is, the messages should remain in the queue, if the database connection is lost temporaraily.
Are the messages PERSISTENT only when the Message Queue fails or We can make the messages to remain in the queue till the time we want by not acknowledging them????
Please help
Hitesh

Hi everyone,
I am using Sun Message Queue 3.5 Platform Edition.
on. The messages are remaining in the Queue.
According to me, the messages should remain in the
e queue if they are not recieved by the listener and
acknowledged. Please rectify me if I am wrong.Correct. Also if the message was sent with the time-to-live set then the message may be removed from the queue when the message expires.
>
I am using PTP. I am using following method
method called while cerating Session
QueueSession queuesession =
= conn.createQueueSession(false,
Session.CLIENT_ACKNOWLEDGE );
And using following code while sending the message:
queueSender.send(message);
Or shall I use the following:
queueSender.send(message, DeliveryMode.PERSISTENT, 0,
0L);
By default produced messages are persistent so you can use either method.
I am trying to send the messages to the queue, the
listener to the queue fetches the data from the queue
and stores in the database. What I want is, the
messages should remain in the queue, if the database
connection is lost temporaraily.
Are the messages PERSISTENT only when the
n the Message Queue fails or We can make the messages
to remain in the queue till the time we want by not
acknowledging them????
When you produce persistent messages the send() method will not return until the broker has persisted the message. This protects the messages from being lost in case the broker goes down.
Chris
http://wwws.sun.com/software/products/message_queue/index.html
Please help
Hitesh

Similar Messages

  • How  do  Acknowledgement work in BPM

    For example I have a block, exception handler, send step inside block that sends asynch message to JDBC receiver.
    Do I need acknowledgement in order to cath exception?
    What will JBDC receiver send an acknowledgement?
    What is the purpose of acknowledgement?

    Go thru this
    /people/siva.maranani/blog/2005/03/01/usage-of-transport-level-acknowledgements

  • How message persistence works in ALSB

    Hi,
    When I used transport options like retry count and retry interval the question came to my mind is where ALSB stores these retry messages.
    This question is only to make sure it's high availability checking possibility of customization .
    Thanks
    Edited by prabhu_biradar at 12/05/2007 2:04 PM

    For business services messages are stored in memory to do retry and failover.
    On the inbound side you can also specify retry for JMS and MQ. In that case the message are persisted to disk or database depending of your JMS/MQ server configuration.
    Gregory Haardt
    ALSB Prg. Manager
    [email protected]

  • JMS Message Acknowledgement

    Hi,
    In my application I am using a Pub/Subscribe mode for JMS. I am using a durable subscriber. In the Subscriber side, I am opening a non-transacted TopicSession with Acknowledgement mode CLIENT_ACKNOWLEDGEMENT.
    I have a Message listener which processes the message.
    In my Message listener, I want to achieve the following...
    Process the message, if processing succeeds, acknowledge the message. I am not acknowledging messages if the processing fails due to any reason..
    Once, all the messages have been consumed, the program exits. While exiting the program, I am calling Message.recover() to put back unacknowledged messages back into the Topic...But I have observed the following problem...Say I receive the messages in the following order Message1, Message2, Message3.
    Now if i don't acknowledge the Message3, and acknowledge the Message1 and 2...and the program exits...Then when the subscriber starts again, Message3 is still there in the Topic as it was not acknowledged...This is all goo...
    Where is creates a problem is, say if I don't acknowledge the Message1 and acknowledge Message2 and 3 and the program exits...Now when the program exits, Message1 which was not acknowledged it also not present in the Topic...So acknowledging a message basically works like acknowledging all messages received prior to the particular message?? Is there a way to get around this problems? When I consume the messages in the Listener, can I put the messages that I don't want to acknowledge in a group or something like that? What I want to achieve is any message that is unacknowledged should be redelivered...How to achive that?
    Thanks
    surajit

    As you assert, when you acknowledge Message2, you are also acknowledging all messages not previously acknowledged on the given session (I.E. Message1). That is, per the JMS Specification, how message acknowledgement works. There is no workaround as this is how it is designed.

  • HT1751 On an old Mac I got this message while trying to burn a CD for the car: "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What does this mean?  And how do I work around it?

    On an older Mac I got this message while trying to burn a CD for the car: "The attempt to burn a disc failed.  The burn failed because of a medium write error."  What does this mean?  And how do I work around it?

    I had been getting this all morning and checked other messages from the community. THe one which worked was trying a different brand of disc.
    I had been using Verbatim which had copied the music fine off the Real Player on my PC at school, but wouldn't work with I Tunes. Tried a Staples and an Office Depot CD-R , both of which did the job.

  • Itunes 11.1.5 will not sync new apps with iPhone 5 iOS 7.0.6 and gives grayed out "install" no message?  How does one work around this?

    Itunes 11.1.5 (MacBook Pro,OS 10.6.8) will not sync new apps with iPhone 5 iOS 7.0.6 and gives grayed out "install" no message?  How does one work around this?

    Just reboot your laptop... While its rebooting try to reboot your phone also by holding the home and power buttonn for 10-15 seconds...When your phone is turned off try to connect it to iTunes and it will recognize your phone in recovery mode.
    If you have the .ipsw file for iOS 7.0.6 saved in your desktop then in itunes press shift and click on Restore.
    Select the ipsw file and let it restore.
    If you dont have it downloaded then simply click on restore.
    I hope it works
    Cheers !

  • I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    I am using an I phone 5 in Germany and trying to get text messaging to work through the hands free Bluetooth connection on a Honda CRV. It keeps telling me that text messaging is not a feature of my phone. messages come in on the phone.How to resolve ?

    mono 8 bit 8k is 64kbps, yes. 8 bits times 8,000 = 64,000 = 64k bits/sec.
    And yes I think that's a typo - there's no such thing as 'Mone' that I've ever heard of...
    But you might want to check to find out if this is a mu-law non-linear format, possibly - there are several ways that 8 bit 8k wav files can be encoded, and typically phone systems don't use linear ones. If you have a log-in to Zultys' user-base system they have an FAQ there, I believe - the answer might be in that, and it won't cost $500.

  • When I try to finalize my project a message pops up, "Sharing requires more memory to be available." How do I work this issue out?

    When I try to finalize my project a message pops up, "Sharing requires more memory to be available." How do I work this issue out?

    https://support.apple.com/kb/TS1567
    Ah, it has been mentioned daily esp since iOS 5 / iTunes 10.5 but has always been there as an issue.
    Order of attempts:
    Repair the installers
    Uninstall EVERY Apple component (auto and manual)
    Services: Restart all 3 Apple items (AMS, Bonjour, iPod)
    I* always do the last almost, then launch iTunes, and only then connect iPod.
    IF you see a yellow alert in Devices and Printers or in Device Manager, then I could find NO WAY to fix or repair other than a clean OS. Something messed up the device driver support.
    If/when Windows asks "what to do when it detects iPod"? don't chose any default action, to me, based on hunch and 3 PCs, that seems to mess AMS up for some reason.
    Tried with Windows 7 64-bit Pro and Home Premium, and also Deve Preview 8 (which other than the inability to update iOS to 5.0 seems to run better -- except when it comes to AMS thing! so seems Apple is not on the same page writitng drivers.

  • Several days ago some of the links in my Apple Mail messages stopped working. Specifically, the links going to some variation of "response beacon" don't work. All I see is a blank screen. Does anyone have any idea how to fix this?

    Several days ago some of the links in my Apple Mail messages stopped working. Specifically, the links going to some variation of "response beacon" don't work. All I see is a blank screen. Does anyone have any idea how to fix this?

    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • How to acknowledge JMS messages manually in BPEL

    How to acknowledge JMS messages manually in BPEL?
    Thanks!

    If Oracle BPEL/SOA Dev team is watching this form then please add this feature as all the major vendors support this.

  • How to acknowledge one topic message only

              Hi,
              I meet a JMS TOPIC problem on upgrade wls5.1 to wls 8.1. The following Listener
              Method can ACKNOWLEDGE just one messasge on wls5.1, but it ACKNOWLEDGE all previous
              message on wls 8.1.
              I don't know what's wrong? please help.
              Thank you,
              Regards,
              I just want to ACKNOWLEDGE object message with specified field with value 1000L
              public void onMessage(Message message) {
              counter ++;
              try {
              System.err.println(counter + " times onMessage, class=" + message.getClass()
              +
              ", id=" +
              message.getJMSMessageID());
              catch (JMSException e) {
              e.printStackTrace();
              if (message instanceof BytesMessage) {
              BytesMessage bytesMessage = (BytesMessage) message;
              //Process bytesMessage here
              else {
              if (message instanceof MapMessage) {
              MapMessage mapMessage = (MapMessage) message;
              //Process mapMessage here
              else {
              if (message instanceof ObjectMessage) {
              ObjectMessage objectMessage = (ObjectMessage) message;
              //Process objectMessage here
              try {
              BillableTrxData billableData = (BillableTrxData) objectMessage.
              getObject();
              System.err.println("receive messsage with trxId = " +
              billableData.getTrxId());
              if (billableData.getTrxId() == 1000L) {
              try {
              message.acknowledge();
              System.err.println("acknowledge trxId = " +
              billableData.getTrxId());
              catch (Exception e) {
              e.printStackTrace();
              else {
              System.err.println("don't acknowledge trxId = " +
              billableData.getTrxId());
              message.acknowledge();
              catch (Exception e2) {
              e2.printStackTrace();
              else {
              if (message instanceof StreamMessage) {
              StreamMessage streamMessage = (StreamMessage) message;
              //Process streamMessage here
              else {
              if (message instanceof TextMessage) {
              TextMessage textMessage = (TextMessage) message;
              //Process textMessage here
              try {
              if (isTransacted()) {
              getTopicSession(false).commit();
              catch (Exception ex) {
              ex.printStackTrace();
              

              Hi,
              I meet a JMS TOPIC problem on upgrade wls5.1 to wls 8.1. The following Listener
              Method can ACKNOWLEDGE just one messasge on wls5.1, but it ACKNOWLEDGE all previous
              message on wls 8.1.
              I don't know what's wrong? please help.
              Thank you,
              Regards,
              I just want to ACKNOWLEDGE object message with specified field with value 1000L
              public void onMessage(Message message) {
              counter ++;
              try {
              System.err.println(counter + " times onMessage, class=" + message.getClass()
              +
              ", id=" +
              message.getJMSMessageID());
              catch (JMSException e) {
              e.printStackTrace();
              if (message instanceof BytesMessage) {
              BytesMessage bytesMessage = (BytesMessage) message;
              //Process bytesMessage here
              else {
              if (message instanceof MapMessage) {
              MapMessage mapMessage = (MapMessage) message;
              //Process mapMessage here
              else {
              if (message instanceof ObjectMessage) {
              ObjectMessage objectMessage = (ObjectMessage) message;
              //Process objectMessage here
              try {
              BillableTrxData billableData = (BillableTrxData) objectMessage.
              getObject();
              System.err.println("receive messsage with trxId = " +
              billableData.getTrxId());
              if (billableData.getTrxId() == 1000L) {
              try {
              message.acknowledge();
              System.err.println("acknowledge trxId = " +
              billableData.getTrxId());
              catch (Exception e) {
              e.printStackTrace();
              else {
              System.err.println("don't acknowledge trxId = " +
              billableData.getTrxId());
              message.acknowledge();
              catch (Exception e2) {
              e2.printStackTrace();
              else {
              if (message instanceof StreamMessage) {
              StreamMessage streamMessage = (StreamMessage) message;
              //Process streamMessage here
              else {
              if (message instanceof TextMessage) {
              TextMessage textMessage = (TextMessage) message;
              //Process textMessage here
              try {
              if (isTransacted()) {
              getTopicSession(false).commit();
              catch (Exception ex) {
              ex.printStackTrace();
              

  • My iPhone was stolen and I have contacted the police who are using the meid number to locate.  How does this work and what are my chances of getting the phone back?

    My iPhone was stolen.  I used Find My iPhone app to lock it and display a message.  The phone has not connected to the internet to locate it.  I contacted the police and they have taken my meid number.  How does this work and what are my chances of getting the phone back?  Are there other ways the theif can use it.  I was told once they put in a new sim card and use it, whatever software the police have, it will show up.

    Honestly? In the US (I can't speak to other countries, though I doubt it works much differently in a lot of the world) The police took your report and filed it either in their computers or, on paper. They will now not think of this again. The only time it will cross anyones mind is if, in the course of entering information into evidence about items recovered or seized at a crime scene, the serial number of an iPhone that was found/seized happens to match yours, in which case you will be contacted.
    The police in the US can and will do nothing to 'blok' the phone and it's not worth their time to try and locate it unless you know for a fact that it was stolen by a big time drug lord, master criminal, or some other such prime target and they can get a court order to track the location of the phone in order to locate this individual for your own purposes.  If they do that, they'll probably keep him under surveilance for a year or so before they act.
    Basically, the police don't care about your phone. If they find it, they will give it back to you. They are not, however, going to go looking for it. They have better things to do.
    I'm sorry, but that's the way it is.

  • I cant get my messaging to work on my ipod touch...can you help me?

    how do i get the messaging to work on my ipod?

    you have to apply Extension Manager 5.0.3 update. Apple made some API changes in Lion which causes Extension Manager CS5/5.5 crash. We released Extension Manager 5.0.3 and 5.5.3 update last April to solve this issue. You can apply this update via Adobe Application Manager. You can also click "Help"->"Updates..." menu item in Photoshop CS5, then update Extension Manager CS5 in popped up dialog box.
    Each version of Extension Manager only installs/manages extensions for the same version of products. For example, Extension Manager CS5 only installs or manages extensions for Dreamweaver CS5, Photoshop CS5, InDesign CS5, etc. Extension Manager CC is only for Photoshop CC, etc.

  • Problem JMS-c api for message Acknowledgement

    Hi,
              I am working in a project that uses bea-JMS C api for
              Communictions.In my project i am using topic messaging for message reciving and sending..Here i am using durablesubscriber for receiving and client Acknowledgement to Acknowledge the message.
              In receiving function I store the message in another JmsMessage for Client-Acknowledgement.
              Here comes one problem that, while i Acknowledge on the receive function each and every message Acknowledge correctly.But while i Acknowledge that message from some other function it return -1 as , that it cannot Acknowledge.The other function is working in another thread.
              Wheather the seprate thread will make the problem for confirmation.

    Similar to JDBC connections, JMS sessions and their related child producers and consumers are not thread-safe (with the one exception of the session.close() method).
              For example, without added application level locking, its not safe to acknowledge a message from one thread while another thread receives or produces a message. This has special implications for asynchronous consumers, as once the asynchronous consumer is created, access to the session and objects is limited to code within the "onMessage()" and "onException()" callbacks.
              This behavior is detailed in the JMS specification.
              Tom

  • I message not working on ios 7

    I have upgarded to ios 7 and my i message isnt working, when i go to turn it on it asks me to log in to apple acc, which i do and it wont accept my details, i have tried logging into my apple acc via app store and it works fine, i have also logged out of my acc and logged back in fine so i know that the details are correct.
    anyone know what else i can try please. 
    Thanks

    I have just read this a second ago so I will advice you the same, you could maybe think about going to get an appointment at your closest Apple store because I am not sure many people know how to fix this, they will probobly swap your iphone in for a new Iphone 5

Maybe you are looking for