Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-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 E8B0918374 for ; Fri, 12 Jun 2015 22:08:32 +0000 (UTC) Received: (qmail 1551 invoked by uid 500); 12 Jun 2015 22:08:32 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 1509 invoked by uid 500); 12 Jun 2015 22:08:32 -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 1496 invoked by uid 99); 12 Jun 2015 22:08:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 22:08:32 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tbain98@gmail.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-ig0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Jun 2015 22:06:17 +0000 Received: by igbhj9 with SMTP id hj9so20620683igb.1 for ; Fri, 12 Jun 2015 15:08:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=7EoU/iyQ1TyPpUiSXH65HtmMcSdd/pxbX4ZiN6+WAeQ=; b=r4lNRtZH6+JMcHeIIRcdwJb+pXuWjC3hBOWvpPST1ozw5H4mZenvJ6FsgkkvPCPTUW kdPLrDE/tFZ3pAj2JH3gT5w8czmMntgcMI1vPqAqtJEN1qcc9LGaA41lqoxpJeByNKmw sTFOgDCF8CyWy6VCP0HSOwuK9PIGBjkiW06AnnrEjJQdvDhEKO78uUzgx6FR4VrpMNb8 +0nAE9xkygJPN8sztmErV5RTXiWXA0uMqUTzzr/F73KoVdK90CCm3fXdoHxTF2EkGbIM rgj2LEs7xGH2/HTbZQiK1F7xxRM/QuY2YNqzWVWD2/v5JLsh2ooS2oLoCwZYbIiFlCGv tMEA== MIME-Version: 1.0 X-Received: by 10.107.131.81 with SMTP id f78mr21035665iod.42.1434146885727; Fri, 12 Jun 2015 15:08:05 -0700 (PDT) Sender: tbain98@gmail.com Received: by 10.50.251.141 with HTTP; Fri, 12 Jun 2015 15:08:05 -0700 (PDT) Received: by 10.50.251.141 with HTTP; Fri, 12 Jun 2015 15:08:05 -0700 (PDT) In-Reply-To: References: Date: Fri, 12 Jun 2015 16:08:05 -0600 X-Google-Sender-Auth: qZLcxNnXv_PUStm_zJmRysthvm4 Message-ID: Subject: Re: Allowing another consumer to have a message (ActiveMQ-CPP) From: Tim Bain To: ActiveMQ Users Content-Type: multipart/alternative; boundary=001a113ecb70adfbeb0518595778 X-Virus-Checked: Checked by ClamAV on apache.org --001a113ecb70adfbeb0518595778 Content-Type: text/plain; charset=UTF-8 It sounds like you can reproduce this reliably; can you submit a bug report in JIRA and attach the client code and broker config that produce the behavior? (The simpler the better; do your best to cut out anything that isn't necessary to show the problem.) If you want to trace the code yourself and figure out why it's doing what it's doing, that would be great (and it'll be the fastest way to get yourself a fix). If not, you'll wait till someone feels like investigating, whoever and whenever that might be. On Jun 12, 2015 7:20 AM, "spamtrap" wrote: > On Fri, 12 Jun 2015 06:56:42 -0600, Tim Bain > wrote: > > I was calling session.start() after calling session.stop(). > > If I change it to deleting and re-creating a session object the > message still disappears, but this time when I re-create the consumer > object (i.e. not when the session starts). > > >Does restarting the session mean creating a new session object, or calling > >start() on the current one after calling stop()? Is the behavior the same > >if you do it the other way? > >On Jun 12, 2015 4:30 AM, "spamtrap" > > >wrote: > > > >> On Thu, 11 Jun 2015 14:01:16 -0600, Tim Bain > >> wrote: > >> > >> >Confirm that step by step. Are the messages still on the broker when > the > >> >transaction rolls back? Are they still on the broker when the client > >> >disconnects? Wherever you lose them, the previous step is the one to > >> >investigate. > >> > >> I've now done this. The message is still there when the transaction > >> rolls and and the broker disconnects. It is still there when the > >> client disconnects. It is still there when I create a new consumer. > >> It 'disappears' when I restart the session. In the broker log I can > >> see an Acknowledgement at this time, but it wasn't done by me. > >> > >> > >> > > > --001a113ecb70adfbeb0518595778--