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 422DB17C28 for ; Fri, 11 Sep 2015 23:15:26 +0000 (UTC) Received: (qmail 50930 invoked by uid 500); 11 Sep 2015 23:15:25 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 50886 invoked by uid 500); 11 Sep 2015 23:15:25 -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 50848 invoked by uid 99); 11 Sep 2015 23:15:25 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Sep 2015 23:15:25 +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 10CCDE7636 for ; Fri, 11 Sep 2015 23:15:25 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.558 X-Spam-Level: **** X-Spam-Status: No, score=4.558 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_IMAGE_ONLY_16=1.048, HTML_MESSAGE=3, T_REMOTE_IMAGE=0.01, URIBL_BLOCKED=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-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id aUoXP3FePpq8 for ; Fri, 11 Sep 2015 23:15:10 +0000 (UTC) Received: from mail-vk0-f51.google.com (mail-vk0-f51.google.com [209.85.213.51]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8176442B13 for ; Fri, 11 Sep 2015 23:15:10 +0000 (UTC) Received: by vkao3 with SMTP id o3so21570086vka.2 for ; Fri, 11 Sep 2015 16:15:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=0mThIPjF8t+9+gzMOWNTAVYhOmKM8JCFaFSH7T1IsWU=; b=CA92WerBjtsFaGunxA783X4f3fXQRR2zqVZPvKmCHak0+0DtqLIsXs/XNH97G5EETd XSewKkoH7N641L5GZZUhiPddQdr8FmbVT3zFHiqkp9rQ4/Tw9z/JM8Rdex0XtP+dEDLw nfmuOLvXvU+H2UVz+5k5axkEYwFqkeg5ATQ9kRZifdh48O6VpfDDMfDjQuAQAxyA7bg7 cvwNNJVDMmQ2jNVEtkw/aSILflmeWKbSr2bL2+qtUxOI7/oWXEGhivyyb3a3fYDffp1l CbhqroOzF1Mrv7vdMk2cQnJsTP53O2RKsSv6fPAqyDYjVE8sDhcZZTVv73y9s37iJ2q4 8RSA== X-Received: by 10.31.185.198 with SMTP id j189mr925543vkf.34.1442013304204; Fri, 11 Sep 2015 16:15:04 -0700 (PDT) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.31.96.84 with HTTP; Fri, 11 Sep 2015 16:14:44 -0700 (PDT) From: Kevin Burton Date: Fri, 11 Sep 2015 16:14:44 -0700 X-Google-Sender-Auth: FgqtAX1SM_6Yvgo4LrbJReR-VX0 Message-ID: Subject: how do you test rollback with an embedded broker? To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a11439d98c2330c051f80e2d5 --001a11439d98c2330c051f80e2d5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable OK. For the life of me I can=E2=80=99t get this to work. https://gist.github.com/burtonator/eb7a70e1750080ca621e Basically I want to call rollback() so that a message is retries later. This way if there=E2=80=99s a transient but like a database connection fail= ing it gets retried (but of course uses the retry policy). The problem is that it just doesn=E2=80=99t work. I tried creating too =E2=80=98clients=E2=80=99 whereby each has its own cli= ent ID. That doesn=E2=80=99t work either. I went through the tests in ActiveMQ and didn=E2=80=99t see anything obviou= s there. I must be missing something super obvious=E2=80=A6. Any thoughts? --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile --001a11439d98c2330c051f80e2d5--