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 016ED20049C for ; Fri, 11 Aug 2017 20:29:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F3E7816DAC5; Fri, 11 Aug 2017 18:29:29 +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 45A4716DAAD for ; Fri, 11 Aug 2017 20:29:29 +0200 (CEST) Received: (qmail 54986 invoked by uid 500); 11 Aug 2017 18:29:28 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 54975 invoked by uid 99); 11 Aug 2017 18:29:27 -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; Fri, 11 Aug 2017 18:29:27 +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 7D0D3C1DF1 for ; Fri, 11 Aug 2017 18:29:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.293 X-Spam-Level: *** X-Spam-Status: No, score=3.293 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OBAdiC7bGEgI for ; Fri, 11 Aug 2017 18:29:26 +0000 (UTC) Received: from mail-oi0-f53.google.com (mail-oi0-f53.google.com [209.85.218.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 9E2215FD06 for ; Fri, 11 Aug 2017 18:29:25 +0000 (UTC) Received: by mail-oi0-f53.google.com with SMTP id f11so40687714oic.0 for ; Fri, 11 Aug 2017 11:29:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=WRhlmbicWeZeefBxBpsMZAK2Hg4h4xDiZGkAWtY9Nu8=; b=rlv05H/wNNdTfZJBc+QQxJOMKX156/m4ywk2TyL/zEcY31mWYdrWU5YUUh8+GN3Xc6 +Z7mHqggU+ZpnrTXu8l21q7LK6VRBXJWjLgOuFUl6vw/IF9U3xoo6A5hsOiIP0dq7erx FF/EfwIBK+Saw/nAQA9d/3FnruqE96Nl7F/MRH5wv8zJe7lGI3+M04w296hwVMg9J1ST tlF/LtoKA0hv8ymobewoogBa0LDmmt/E6juH3/yd2bMd77kT4gcS/4L8N6CLGTjzpA76 lSizQoiX2dmVFRHVt0kxYduSrgur2Gk6ASlnXlit3It4P+NIw9Soxj4fRRq4PCGyLw9j j//g== X-Gm-Message-State: AHYfb5iGDF4hribZdYqzRJe7DyQEYPk9ziUT0r/3FJq9BiwweUv4nzds 4p1B4SYKzdtPcfQFWHK4iOW9YCPyFd7v X-Received: by 10.202.73.19 with SMTP id w19mr18670341oia.51.1502476164673; Fri, 11 Aug 2017 11:29:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.74.171.131 with HTTP; Fri, 11 Aug 2017 11:29:24 -0700 (PDT) In-Reply-To: <1502467682488-4729633.post@n4.nabble.com> References: <1502467682488-4729633.post@n4.nabble.com> From: Justin Bertram Date: Fri, 11 Aug 2017 13:29:24 -0500 Message-ID: Subject: Re: Artemis 2.2.0, last_value_queue not working with AMQP To: users@activemq.apache.org Content-Type: multipart/alternative; boundary="001a113de4f01441ef05567e7e22" archived-at: Fri, 11 Aug 2017 18:29:30 -0000 --001a113de4f01441ef05567e7e22 Content-Type: text/plain; charset="UTF-8" The last-value queue feature isn't yet supported for AMQP clients. Justin On Fri, Aug 11, 2017 at 11:08 AM, vchen1 wrote: > I was testing the last_value_queue and noticed that it is not working if > connected with AMQP. Here is what I have tested: > > 1.) With port 61616, I followed the example on Artemis github and have the > jndi file as: > > java.naming.factory.initial=org.apache.activemq.artemis.jndi. > ActiveMQInitialContextFactory > > connectionFactory.myFactoryLookup=tcp://localhost:61616 > > and set _AMQ_LVQ_NAME as directed: > > TextMessage message = session.createTextMessage(command); > > message.setStringProperty("_AMQ_LVQ_NAME", "STOCK_NAME"); > > it works as expected, only keep the last message in the queue. > > 2.) Still with port 61616, but change > > connectionFactory.myFactoryLookup=amqp://localhost:61616 > > then the last value queue breaks. It keeps all the messages sent to the > queue. > > 3.) Change the port to use AMQP port 5672: > > java.naming.factory.initial = > org.apache.qpid.jms.jndi.JmsInitialContextFactory > connectionfactory.myFactoryLookup = amqp://localhost:5672 > > again the last value queue breaks. It keeps all the messages sent to the > queue. > > I wonder if the last value queue is designed to only work for Artemis JMS > not AMQP? Thanks, > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/Artemis-2-2-0-last-value-queue-not-working-with- > AMQP-tp4729633.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a113de4f01441ef05567e7e22--