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 B8383200D40 for ; Fri, 3 Nov 2017 09:44:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B6B31160BFB; Fri, 3 Nov 2017 08:44:04 +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 083DE160BE9 for ; Fri, 3 Nov 2017 09:44:03 +0100 (CET) Received: (qmail 21763 invoked by uid 500); 3 Nov 2017 08:44:03 -0000 Mailing-List: contact issues-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 issues@activemq.apache.org Received: (qmail 21754 invoked by uid 99); 3 Nov 2017 08:44:03 -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, 03 Nov 2017 08:44:03 +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 7C7C5DD1A7 for ; Fri, 3 Nov 2017 08:44:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled 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 TFdSUDZ8-vmf for ; Fri, 3 Nov 2017 08:44:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3A66D60CE6 for ; Fri, 3 Nov 2017 08:44:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8157BE0D73 for ; Fri, 3 Nov 2017 08:44:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 17BB223F1D for ; Fri, 3 Nov 2017 08:44:00 +0000 (UTC) Date: Fri, 3 Nov 2017 08:44:00 +0000 (UTC) From: "Tom Ross (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (ARTEMIS-1497) Destroy message instead of sending it to DLQ MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Nov 2017 08:44:04 -0000 Tom Ross created ARTEMIS-1497: --------------------------------- Summary: Destroy message instead of sending it to DLQ Key: ARTEMIS-1497 URL: https://issues.apache.org/jira/browse/ARTEMIS-1497 Project: ActiveMQ Artemis Issue Type: New Feature Components: Broker Affects Versions: 2.3.0 Environment: ActiveMQ 2.3 Reporter: Tom Ross Customer would like to have an option of destroying certain messages instead of sending them to DLQ in case message processing fails. Below is an example of what they think could happen: {noformat} public class HelloMDB implements MessageListener { MessageDrivenContext ctx; @Override public void onMessage(Message message) { try { doSomeInsertsButThenFailBecauseOfDataThatMakesNoSense(); } catch (UnableToProcessMessageBecauseOfDataThatMakesNoSense e) { ctx.setRollbackOnly(); // we do not want to commit, because we do not know how many inserts we did before we failed try { message.setBooleanProperty("DESTROY_INSTEAD_OF_GOING_TO_ERROR_QUEUE", true); } catch (JMSException ex) { throw new RuntimeException("unable to set destroy property", e); } } } {noformat} In the case above they would like a message that was a rolled back and tagged with DESTROY_INSTEAD_OF_GOING_TO_ERROR_QUEUE property to be destroyed instead of send to DLQ. If that happens they would like the broker to log that instance in the server log file. -- This message was sent by Atlassian JIRA (v6.4.14#64029)