Return-Path: X-Original-To: apmail-mina-users-archive@www.apache.org Delivered-To: apmail-mina-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1098010FBC for ; Mon, 8 Jul 2013 08:55:38 +0000 (UTC) Received: (qmail 53847 invoked by uid 500); 8 Jul 2013 08:55:37 -0000 Delivered-To: apmail-mina-users-archive@mina.apache.org Received: (qmail 53803 invoked by uid 500); 8 Jul 2013 08:55:27 -0000 Mailing-List: contact users-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@mina.apache.org Delivered-To: mailing list users@mina.apache.org Delivered-To: moderator for users@mina.apache.org Received: (qmail 33400 invoked by uid 99); 8 Jul 2013 08:45:47 -0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: encountered temporary error during SPF processing of domain of sbrytskyy@gmail.com) Date: Mon, 8 Jul 2013 01:44:33 -0700 (PDT) From: sbrytskyy To: users@mina.apache.org Message-ID: <1373273073151-38562.post@n7.nabble.com> Subject: Reliable delivery MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org My question is how to get if possible message in method *public void exceptionCaught(IoSession session, Throwable cause)* Let's do step by step using standard mina example chat. 1. Server and client are deployed on different computers 2. Start server 3. Start client 4. Login to server 5. Send test message So far everything goes well. 6. Unplug network cable on server 7. Meanwhile send message from the client Result: Message will not be passed to server. Exception will be thrown and method *exceptionCaught* will be executed. Is it possible to know from *IoSession* what message was lost? Or is there any other correct way of error handling and reliable message delivery? Thanks -- View this message in context: http://apache-mina.10907.n7.nabble.com/Reliable-delivery-tp38562.html Sent from the Apache MINA User Forum mailing list archive at Nabble.com.