Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 46D02200C30 for ; Tue, 7 Mar 2017 16:08:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4574A160B68; Tue, 7 Mar 2017 15:08:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8CE53160B5F for ; Tue, 7 Mar 2017 16:08:07 +0100 (CET) Received: (qmail 3223 invoked by uid 500); 7 Mar 2017 15:08:06 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 3211 invoked by uid 99); 7 Mar 2017 15:08:06 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Mar 2017 15:08:06 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id D184AC126D for ; Tue, 7 Mar 2017 15:08:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.58 X-Spam-Level: *** X-Spam-Status: No, score=3.58 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=2, KAM_COUK=1.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id G_pTm4pLyR8t for ; Tue, 7 Mar 2017 15:08:04 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D8FB75F479 for ; Tue, 7 Mar 2017 15:08:03 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id 62so3772343oih.2 for ; Tue, 07 Mar 2017 07:08:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:sender:from:date:message-id:subject:to; bh=0QoqyIBARZsdZ9+zIKHD82VIaqwzUDTyF57iJK3o+oU=; b=QkvyT80wytp6vpeADGd6k53Y+SFFrARUCUwUoLBBY4qCJDJOW8dN9CBG5fFfRATHY7 J1oltiF8Y0ylrWu7qW4899VEUBlgTgpknMkaKaZ2FfsxVw5ej1wtfuBXYalwL7uHON5S od9cdX8Y17Tw3oI+cZnM8LoZuvw1Mc0VF1Q4Khi+OJ0rdQXbqxl2CuQtnGT2c4mmKTRs KGPwvwmowWd0RsfyGfLl3NyGPeT7+6jLJZytArduVex52LJCII40lkYFqxi0R3k1zpho CmF6XssWln+joLyEUcQ7zi2MnqZ8tgXhh8LX/Iq/TkCbhYNM2m264ESoT2UIyd95W2t8 f10Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:sender:from:date :message-id:subject:to; bh=0QoqyIBARZsdZ9+zIKHD82VIaqwzUDTyF57iJK3o+oU=; b=l1j8pcMFilEVHSwRytpjuJmRdiEEVIqn6dRNHRKIUI1pwzsTaO/lIQPl8ZIzHP0Znu D5tzNKCf8RqW2PGJrcvJO1rvEGeF37H4r/Fffkzj92y6yR3yjtIlO9yelXcvzauZ0gZW Xn1oO2ZHGs86eBI+Uf8dI/B37Lf0u9Cx/H0bgw/7EVGQCO+zvnV5hH6rHEootviuWNMR 8Elf+rAJeLiUYzm4tEMAIsrNjL2HsSoMzzem37UNqf8nm0y+qgSWDkW3eJyIGW3XBsv8 Gqx8RhFSyUVpPkc08BiZVp0p78kZeLC6pXx8IeGTho2GyjlUsm5cxtQ4XPiVAb88YqvI CELA== X-Gm-Message-State: AMke39nO1xphX4r9QrTN0yH/tQJheR1eWTpPfVS5alRVw+V5fZzwLv8zDtQ1GPhZJ7T2SDON9qJB5jxsCpksNQ== X-Received: by 10.200.51.84 with SMTP id u20mr594194qta.133.1488896155409; Tue, 07 Mar 2017 06:15:55 -0800 (PST) MIME-Version: 1.0 Reply-To: me@vincecole.co.uk Sender: the.vince.cole@gmail.com Received: by 10.55.49.17 with HTTP; Tue, 7 Mar 2017 06:15:54 -0800 (PST) From: Vince Cole Date: Tue, 7 Mar 2017 14:15:54 +0000 X-Google-Sender-Auth: _dtN-KzuTHwG71gjtmmab1dR92A Message-ID: Subject: synchronous sending - using javax.jms.MessageProducer::send To: users@qpid.apache.org Content-Type: multipart/alternative; boundary=001a113df774739a4b054a24a6f2 archived-at: Tue, 07 Mar 2017 15:08:08 -0000 --001a113df774739a4b054a24a6f2 Content-Type: text/plain; charset=UTF-8 I have a requirement to for my JMS client to block, and only return once the message has been accepted onto the specified queue or topic. If the message is not accepted, then an exception should be thrown. We don't care whether anything actually consumes the message. However, my client can only seem to produce messages in asynchronous mode! So if there's an exception, all we can do is log it. That's not enough, I need the client application to keep the message (so it can retry later) and only drop it once the broker has accepted it into the specified queue/topic. I am using: * javax.jms : javax.jms-api : 2.0.1 * org.apache.qpid : qpid-jms-client : 0.11.1 * org.apache.qpid : qpid-amqp-1-0-client-jms : 0.32 * The broker is ActiveMQ 5.14.0, if that makes any difference. Please could you advise if the Qpid Java client library supports synchronous production and if so what settings to use, to acheive that, in the following (where relevant): * Options in the transport URI (in activemq.xml) * Options in the connection URI (used by the client) * Whether messages need to be 'persistent' or not? * Whether the producer's JMS session should be transacted or not? * What 'acknowledge mode' to set? * Whether having a 'ConnectionListener' set on the connection will force it to be asynchronous, regardless? Thanks in advance. --001a113df774739a4b054a24a6f2--