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 ED2C318EA7 for ; Fri, 11 Mar 2016 14:37:12 +0000 (UTC) Received: (qmail 45569 invoked by uid 500); 11 Mar 2016 14:37:07 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 45527 invoked by uid 500); 11 Mar 2016 14:37:07 -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 45515 invoked by uid 99); 11 Mar 2016 14:37:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 14:37:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id DFCC81A049F for ; Fri, 11 Mar 2016 14:37:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.93 X-Spam-Level: ** X-Spam-Status: No, score=2.93 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.001, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URI_HEX=1.313, URI_TRY_3LD=0.068] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KNZ-LAxHKcD6 for ; Fri, 11 Mar 2016 14:37:05 +0000 (UTC) Received: from mail-io0-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id D95FB5F19D for ; Fri, 11 Mar 2016 14:37:04 +0000 (UTC) Received: by mail-io0-f171.google.com with SMTP id m184so147824938iof.1 for ; Fri, 11 Mar 2016 06:37:04 -0800 (PST) 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; bh=WUG1kIDkyA11Dit5vTwQWXGSt2+ghZrCDlwaKTRyP9g=; b=pm2tevn7JyedH5nTsEQb5jaAmopZf3lgf+I8xClmF6MXLge+fN8FchpUw15mhRmmlw s9vFELq0Zep4NhYaibzUN97iSv9Werp2Zlu4sgnjxqKtW2aQ8Daw7cd+7KIKS0A0dCx2 8tgDGUQA0xv6cTwjGm9cspRTPt3pUC0N0/8XrfNTfMBJUPDwIBRQUL1vQvDZMGWzB9Aq YByAw7L/lI+bqVTgC3oCrgN6M9WLTWBPRYeDY8rgeC2OuS2JE87+GjS0w3XjPPsxzpUM jTxvntz9/izcmUPA4GKx9rMUw5xANmr9Uv8j7p346/TZKd5p2wh4m2YyneN95Q3nJ9zY YnkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:date :message-id:subject:from:to; bh=WUG1kIDkyA11Dit5vTwQWXGSt2+ghZrCDlwaKTRyP9g=; b=GbxHHbpmSEkVUMK/7u9dL7q1NOJ2qHUdzr/IbDn2gE/CTcj0iLrCXhv14AgmPj3RGR gUx2Po8G/gOiYNAXhcrAISovCgrAftuh7EKacSIQqPNag2mZ3a/LaClMcg+woa4B7V8U 3ofsTeUM6Pwrc7rfuLeBMAa43ZvADNp3vmU3CV6mQpI2rkniBtFt8HSemw9cplWyHpy8 LQtTr+ypJpnezhTZ7jBYHEXOnxm6B1suhV1wD+91tBCKUbidRRQepl75BL1qn25/x8q/ q4kmlon6OLAUmpm2+ddB8i5B5vVbj3xRYwjOEkE7Av8A31R/l/+7dGCqbo/Wuj2BXlMk hXKw== X-Gm-Message-State: AD7BkJJ/JLKqlHkYnVoeOxCi8v16BGqYfjOdb+fMHuvUOhrdywZVS/g9iB77aeJSU8tZ3pWdDCgE9oRdy4vXfw== MIME-Version: 1.0 X-Received: by 10.107.135.202 with SMTP id r71mr12228438ioi.103.1457707023899; Fri, 11 Mar 2016 06:37:03 -0800 (PST) Sender: tbain98@gmail.com Received: by 10.50.246.33 with HTTP; Fri, 11 Mar 2016 06:37:03 -0800 (PST) Received: by 10.50.246.33 with HTTP; Fri, 11 Mar 2016 06:37:03 -0800 (PST) In-Reply-To: <1457693936915-4709187.post@n4.nabble.com> References: <1457693936915-4709187.post@n4.nabble.com> Date: Fri, 11 Mar 2016 07:37:03 -0700 X-Google-Sender-Auth: 3E9NBdAfw4pH1PhP4kt32S_GGsk Message-ID: Subject: Re: Message not redirected to DLQ when exception thrown by MDB From: Tim Bain To: ActiveMQ Users Content-Type: multipart/alternative; boundary=001a113ea5f0589fa3052dc6ddb4 --001a113ea5f0589fa3052dc6ddb4 Content-Type: text/plain; charset=UTF-8 What acknowledgement mode are you using? If it's AUTO_ACK, I'd expect that you've already acknowledged the message when the exception is thrown, which would make this expected behavior, but I'd expect you could use a different ack mode to get the behavior you want. On Mar 11, 2016 7:27 AM, "THMayr" wrote: > Hi, > > I deployed a MDB on WildFly 10.0.0. An external ActiveMQ server is > configured in WildFly with the ActiveMQ resource adapter. > > When the method /onMessage()/ of the MDB method throws a runtime exception, > the message is not redirected to the DLQ. This works only, when container > managed transaction handling is used, a transaction is required, and I set > the transaction to be roll-backed by the container when the exception > occurs > (MessageDrivenContext.setRollbackOnly()). In this case no exception is > thrown to the container. > > When I do the same in WebLogic it works! > > I cannot use container managed transactions in my MDB. So is there a way to > redirect the message to the DLQ when processing fails? > > Thomas > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Message-not-redirected-to-DLQ-when-exception-thrown-by-MDB-tp4709187.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > --001a113ea5f0589fa3052dc6ddb4--