Lost message from server's point of view

Hi All
Following situation:
The JMS-Provider sends a JMS-Message. The message is entirely in the wire and is still flying to the consumer. Before the message arrives to the consumer, the network connection fails, so the client does nothing know about the send message.
From the server’s point of view the message was successfully sent but not acknowledged yet. The server waits for an acknowledge and doesn’t undertake redelivery, because the consumer session on the server is still living.
From the consumer point of view the message was not sent so the client has nothing to ack, so we have some “deadlock”.
The question is – how does server recognize such situation (short connection fail, deadlock) and what does it undertake to guarantee the delivery?
Thank you.

The JMS-Provider sends a JMS-Message. The message is entirely in the wire and is still flying to the consumer. Before the message arrives to the consumer, the network connection fails, so the client does nothing know about the send message.
From the server’s point of view the message was successfully sent but not acknowledged yet. The server waits for an acknowledge and doesn’t undertake redelivery, because the consumer session on the server is still living.
From the consumer point of view the message was not sent so the client has nothing to ack, so we have some “deadlock”.
The question is – how does server recognize such situation (short connection fail, deadlock) and what does it undertake to guarantee the delivery?If the "network connection fails" whilst sending a message then the server (and probably the client) will almost certainly receive a SocketException. A message is unlikely to simply disappear on the wire without at least one end of the socket getting an exception of some kind, and if the socket is simply hanging for some reason then most JMS providers would have a means to detect this (e.g. by sending periodic packets down the wire to check it is still alive).
But ultimately, if a persistent message is sent to a consuming client and the message is not acknowledged (or the transaction committed) then the server will eventually redeliver it. JMS doesn't define exactly when an unacknowledged message is redelivered, but it typically wouldn't happen until the consumer in question has closed.
Nigel

Similar Messages

  • JMS - Useful from an international point of view?

    Hi everyone,
    I was wondering if JMS could be useful from a legislative point of view. I mean could it be useful when two companies situated in different countries communicate? Does JMS make this communication easier/better in any way?
    Hope someone is able to help me :)

    JMS is ideal for the loosely coupled communications which the integration of two different companies or governments would require. However, message oriented middleware has typically been a behind-the-firewall technology. So, while most JMS vendors support messaging over the firewall, it is not their primary focus. Web services are better suited to the type of over-the-Internet integration you are describing. The issue with this, however, is that web services lack transactional support. I think they are working on that though.

  • "Delete messages from server" Mail iPhone 5

    Hi, I am trying to locate "delete messages from server" option in Mail Settings on iPhone 5 and can't find it. In iPhone 4 it was just in the Advanced settings but it is not there in iPhone 5. Help please? Thanks

    Not sure who your email provider is. Mine is hotmail. When you set up email with hotmail on an iPhone 4 the delete from server never is available. I just got an iPhone 5, i reset up my hot mail account and can't find that setting either. I set it up by using the hotmail button not "other" so meaning delete your hotmail account from your phone. Then re set it up. But when you do add email account, don't use the button that says hotmail. Use the bottom choice that says "other". I have no idea why this is different but if you do this it will set up hotmail just the same. But now that setting is there. The "delete from server" and you set it to "never". Now when you delete the emails from your hot mail account on the iPhone, it leaves that email on the hotmail server. So when you look at email on the computer it's there still. It's good this way if you share email with someone.

  • 'Cannot obtain error message from server' when trying to use ODBC

    Post Author: Grant C
    CA Forum: Data Connectivity and SQL
    Hi, I'm developing some reports using Crystal XI on my local PC, using an Oracle 10i back end on a separate server.  The SQL for the report is in a method in an oracle package.
    When I set the datasource location, selecting 'Oracle Server' then entering the details works fine, and the report runs.  However, when I try to use an ODBC connection I get the following error:
    Database Connection Error: 'Cannot obtain error message from server.'
    The ODBC link is set up as a System DSN, which works fine when I test it.  I think I need to use ODBC as some of the reports (which I inherited) seem to fail when run on the Crystal Server, and it seeme to be the ones set up with ODBC which work.
    Any thoughts?  Thanks.

    Hi Mars-
    It sounds like your NI-DAQ installation may have become corrupted. I would suggest uninstalling and reinstalling the DAQmx 7.4 driver to correct this problem and ensure that you're up to date. This download is available here: NI-DAQ 7.4
    If the problem persists you may want to uninstall and reinstall LabVIEW and then NI-DAQ in that order. The error message will usually give an indication as to which VI the error occurred in. Please let us know which VI is failing if you're unable to avoid the error with these suggestions.
    Have a good day-
    Tom W
    National Instruments

  • Handling Unit Information from sap mm point of view

    Hi all.
    Looking for Handling Unit Information from sap mm point of view.
    Regards.
    Parameshwar
    Note : Please search forum before posting.
    Edited by: Jeyakanthan A on Sep 22, 2011 1:20 PM

    Please refer the below links
    http://help.sap.com/printdocu/core/print46c/en/data/pdf/LOHU/LOHU.pdf
    http://help.sap.com/bp_bblibrary/600/html/G74_BB_EN_US.htm

  • How to send Subtopic Message From Server-Side to Client ?

    I’m new at flex and i have a new question about Flex
    Message Service.
    How to send messages from Server-Side Java Code with
    Subtopic?
    For example.
    I customed a Flex Message Adapter in Tomcat Server , with
    this Adapter , i can send message to Client with following code .
    ---------------------Send message to Client------------
    MessageBroker msgBroker =
    MessageBroker.getMessageBroker(null);
    String clientID = UUIDUtils.createUUID(false);
    AsyncMessage msg = new AsyncMessage();
    msg.setDestination("CustomMsgServiceDes");
    msg.setClientId(clientID);
    msg.setMessageId(UUIDUtils.createUUID(false));
    msg.setTimestamp(System.currentTimeMillis());
    msg.setBody(clientID + "this is my message from server! \n");
    msgBroker.routeMessageToService(msg, null);
    ---------------------Send message to Client------------
    But i want send a message that have Subtopic to the Client ,
    How to do ?
    Thank you for reply.

    There's a white paper that talks about this subject -
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=8f1eb6ea

  • Levels of planning from sap mm point of view

    Hi All.
    Need Information On Levels of planning from sap mm point of view.
    Thanks in advance  all sap mm forum guys
    Regards.
    Parameshwar.

    Please check
    [MRP Areas|http://help.sap.com/saphelp_46c/helpdata/EN/c4/106956ae8a11d1a6720000e83235d4/frameset.htm]
    [http://help.sap.com/saphelp_46c/helpdata/EN/c4/106956ae8a11d1a6720000e83235d4/frameset.htm]

  • How can i dispaly an Error Message from Server Side To form

    Hi All,
    How can i dispaly an Error Message from Server Side To form side .
    i try several ways nothing succed.
    i put the error in stack and after call the procedure from form i added
    Qms$Trans_Errors.Display_Messages;
    and because it is an error not informantional error the error screen displayed and enter
    in infinite loop acts like flashing .
    can any one help me please i use C/S Headstart6i and Designer 6i
    thanks alot
    radi

    hi,
    thanks alot lauri.
    yr code work only using information message but in error message its still the same .
    the error window still flash and enter in infinite loop of executeing the same triggers.
    thanks again
    radi

  • How can I show message from server?

    Has anyone idea, how can I show message from server? I want to show message after some files are uploaded via FTP.

    Hi,
    You can use OPEN DATASET for this purpose.
    Try this code:
    <b>****************************************</b>
    Data:
    A_FILE TYPE RLGRAP-FILENAME,   "Application server
    P_FILE TYPE RLGRAP-FILENAME.   "Presentation server
    DATA: BEGIN OF ITAB OCCURS 0,
    LINE TYPE STRING,
    END OF ITAB.
    DATA: FILENAME TYPE STRING.
    FILENAME = P_FILE.
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        FILENAME                = FILENAME
      TABLES
        DATA_TAB                = ITAB[]
      EXCEPTIONS
        FILE_OPEN_ERROR         = 1
        FILE_READ_ERROR         = 2
        NO_BATCH                = 3
        GUI_REFUSE_FILETRANSFER = 4
        INVALID_TYPE            = 5
        NO_AUTHORITY            = 6
        UNKNOWN_ERROR           = 7
        BAD_DATA_FORMAT         = 8
        HEADER_NOT_ALLOWED      = 9
        SEPARATOR_NOT_ALLOWED   = 10
        HEADER_TOO_LONG         = 11
        UNKNOWN_DP_ERROR        = 12
        ACCESS_DENIED           = 13
        DP_OUT_OF_MEMORY        = 14
        DISK_FULL               = 15
        DP_TIMEOUT              = 16
        OTHERS                  = 17.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    OPEN DATASET A_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    LOOP AT ITAB.
      TRANSFER ITAB-LINE TO A_FILE.
    ENDLOOP.
    <b>*****************************************</b>
    Hope this helps,
    Regards,
    Pragya

  • Improving audio quality from a subscriber point of view

    Hi,
    I am building an application that requires audio chat. When the chat is happening between an Android user and a PC user, the PC user can hear clearly when the Android user speaks. However, when it is the other way around, the Android user hear distorted sound,with noises. Is there any way to improve audio received from a subscriber point of view?
    Please advice, thanks!
    Regards

    Hi Raff,
    The Android device is a Samsung Galaxy S i9000 and it is running AIR 2.6, attached below is a snippet of the code related to the audio i am using
    <mx:Button x="121" y="700" height="34" width="117" label="Audio" toggle="true" id="audioButt"
       click="(audioButt.selected) ? audioPub.publish(): audioPub.stop()" includeIn="LoggedIn"/>
    <mx:Button x="242" y="700" height="34" width="117" label="Quality" toggle="true" id="audioButt1" includeIn="LoggedIn"
       click="(audioButt.selected) ? audioPub.microphoneManager.encodeQuality = 3 : audioPub.microphoneManager.encodeQuality = 4"/>
    <rtc:AudioPublisher  id="audioPub" codec="{SoundCodec.SPEEX}" useEchoSuppression="true" silenceLevel="0"  />
    <rtc:AudioSubscriber/>
    I think the problem is related to the script I am writing,I created a button  called Quality to reduce the encodeQuality of my PC microphone, will it helps to improve the audio recieved from my Android device?Please advice, thanks!
    Regards

  • Responce times from end-user point of view

    Hi,
    I am looking for the way how to collect responce times from end-user point of view.
    Logging of function execution via DMS is not enogh thus we need to discover and monitor problems in all components including poor network, users terminals etc.
    Regards,
    Tomasz

    Hi,
    I am looking for the way how to collect responce times from end-user point of view.
    Logging of function execution via DMS is not enogh thus we need to discover and monitor problems in all components including poor network, users terminals etc.
    Regards,
    Tomasz

  • Database Connector error: 'cannot obtain error message from server'

    I am using Oracle stored procedures and I have used IN parameters for input and INOUT parameter of REF_CURSOR TYPE for returning resultset in Crystal Report 2008 by using package. Now when I am trying to add the package in the Crystal Report, parameter input box prompts, I enter some values and gets Database Connector error: 'cannot obtain error message from server'.
    But when I do not use INPUT parameters and use OUT parameter of REF_CURSOR type it runs well without any issues.
    We are using ODBC connection for Oracle.
    Kindly suggest.

    Hello,
    Search the Knowledge Base for "oracle store procedures" and you'll find a document on how to write a SP so CR can use them.
    Thank you
    Don

  • Invalid authorization specification,  message from server

    I am new to JDBC, and Java. I'm trying to connect MYSQL database with the following code, i compiled and execute jdbcExample (using JCreator). It giving me this error:
    Exception: Invalid authorization specification, message from server: "Access denied for user: '[email protected]' (Using password: YES)". I have full access granted to the mydb database. Please advise. Thanks!!
    package BeanDir;
    import java.sql.*;
    public class jdbcExample {
    public static void main(String args[]) {
    Connection con = null;
    try {
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    con = DriverManager.getConnection("jdbc:mysql://myintranet/mydb?user=slai&password=mypasswd");
    if(!con.isClosed())
    System.out.println("Successfully connected to MySQL server...");
    } catch(Exception e) {
    System.err.println("Exception: " + e.getMessage());
    } finally {
    try {
    if(con != null)
    con.close();
    } catch(SQLException e) {}

    When setting up users it is possible to restrict access by ip. You may have full priviledges as 'slai@localhost" but not as '[email protected]' . Check the user tables and see.

  • Which design is best from a performance point of view?

    Hello
    I'm writing a small system that needs to track changes to certain columns on 4 different tables. I'm using triggers on those columns to write the changes to a single "change register" table, which has 12 columns. Beacuse the majority of tracked data is not shared between the tables, most of the columns will have null values. From a design point of view it is apparent that having 4 separate change register tables (one for each main table that is being tracked), would be better in terms of avoiding lots of null columns for each row, but I was trying to trade this off against having a single table to see all changes that have been made across the tracked tables.
    From a performance point of view though, will there be any real difference whether there are 4 separate tables or 1 single register table? I'm only ever going to be inserting into the register table, and then reading back from it at a later date and there won't be any indexes on it. Someone I work with suggested that there would be more overhead on the redo logs if a single table was used rather than 4 separate tables.
    Any help would be appreciated.
    David

    The volumes of data are going to be pretty small,
    maybe a couple of thousand records each day, it's an
    OLTP environment with 150 concurrent users max.Consider also the growing of data and if you'll put data constantly to an historical db or if the same tables will contain the increasing number of record.
    The point that my colleague raised was that multiple
    inserts into a single table across multiple
    transactions could cause a lot of redo contention,
    but I can't see how inserting into one table from
    multiple triggers would result in more redo
    contention that inserting into multiple tables. The
    updates that will fire the triggers are only ever
    going to be single row updates, and won't normally
    cause more than one trigger to fire within a single
    transaction. Is this a fair assumption to make?
    David
    I agree with you, the only thing I will consider, instead of redo problem, is the locking on the table that could be generated when logs of different tables will have to be put in a single table, i mean if after insert of a log record you could need to update it....
    In this case if 2 or more users have to update the same log you could have problems.

  • I've lost messages from 1 contact! using iphone 5.

    Hi I've lost messages from 1 contact! using iphone 5. I didnt' delete the conversation. When I reset from past back up they weren't there either.  I've tried an older back up which worked but now i've lost 1 month of communication....

    Thank you.  Yes I've wasted a day & probably made it worse.  I just dont' get how I back up & sync every week but last week's back up is not there either.  Is there a way to back up using I cloud?

Maybe you are looking for

  • Why is the audio not working in Prelude or Bridge with .MTS files?

    There is clearly something buggy with Prelude and Bridge (CS6)  on .mts files. I changed one test file from .mts to m2ts and ithe audio works. This however is not a easy workaround since I have thousands of .mts files.  Any thoughts, suggestions, upd

  • Not able to launch VNC console to VM?  Connection times out.

    Hi, I am using IE8 and Java 1.7 update 4, but every time I try to connect to the console from VM Manager my session expires ... what can I do to launch more quickly (than 30 sec) ? Server Version 3.0.3 Manager Version 3.1.1 All Iptables Off Windows F

  • Java Programming Competition Sample Questions

    Hi, I am interested in participating the Java Programming Competition in my University. For pratice can you point me to some website with sample questions or any question u have in mind. Thanks Satish

  • Information on Oracle Database 10g Administrator

    Hi, I have recently written OCA PL/SQL Developer exams (1Z0-007 and 1Z0-147) and cleared both the exams successfully. Now i wan to focus on DBA side, so i am planning to write Oracle Database 10g Administrator Certified Associate exams. After going t

  • Can I save files from 2nd internal HHD after drop?

    I have a year or two old HP Envy dv7t notebook which has a 750gb SSD which I use for running windows and programs. It also has a second internal 1tb HHD which I use to contain my photos & videos as I am an editor, videographer, photographer. This dri