Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 30E61E4DE for ; Tue, 5 Feb 2013 16:48:16 +0000 (UTC) Received: (qmail 87597 invoked by uid 500); 5 Feb 2013 16:48:11 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 87329 invoked by uid 500); 5 Feb 2013 16:48:11 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 86973 invoked by uid 99); 5 Feb 2013 16:48:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 16:48:11 +0000 Date: Tue, 5 Feb 2013 16:48:11 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQCPP-453) Persistence Flag ActiveMQ C++ - WRONG FLAG CONSTANTS MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQCPP-453?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571448#comment-13571448 ] Timothy Bish commented on AMQCPP-453: ------------------------------------- Because it doesn't really matter what's in the CMS API headers, what matters is what is marshaled to the ActiveMQ broker in the OpenWire messages. If you think there's an issue then creating a unit test case is the way to go. > Persistence Flag ActiveMQ C++ - WRONG FLAG CONSTANTS > ---------------------------------------------------- > > Key: AMQCPP-453 > URL: https://issues.apache.org/jira/browse/AMQCPP-453 > Project: ActiveMQ C++ Client > Issue Type: Bug > Components: CMS Impl > Affects Versions: 2.1.1, 3.5.0 > Environment: SuSe Linux > Reporter: Nikolaus Klimek > Assignee: Timothy Bish > Labels: bug > > We are using the ActiveMQ Broker 5.6.0 and the ActiveMQ C++ Client 2.1.1, > both running on SuSe Linux. We have the problem, that setting persistence in the C++-client doenst effect at the broker. The Messages in the broker are non-persistent, although we have set persistence in the activemq.xml, too. > [...] > > > [...] > For my unterstanding, the Broker uses javax.jms.DeliveryMode for checking, if the Message is PERSISTENT or NON_PERSISTENT. Looking into the constant-spec. for java.jmx.DeliveryMode shows: > javax.jms.DeliveryMode > public static final int NON_PERSISTENT 1 > public static final int PERSISTENT 2 > In the C++-Client-Application, we set > producer->setDeliveryMode(DeliveryMode::PERSISTENT); > Looking into activemq-cpp/src/main/cms/DeliveryMode.h shows: > [...] > enum DELIVERY_MODE { > PERSISTENT = 0, > NON_PERSISTENT = 1 > }; > [...] > Setting producer->setDeliveryMode(2) works for us. So my question is: > Is this a Bug or are there other possibilities to configure it right? > Looking into activemq-cpp/src/main/cms/DeliveryMode.h of the C++-Clients version 3.5 shows still 0 and 1 for PERSISNT and NON_PERSISTENT. Should this be changed to 1 and 2? > > Thank you and best regards > Klimek -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira