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 D63EE17DF2 for ; Mon, 2 Feb 2015 22:26:25 +0000 (UTC) Received: (qmail 58139 invoked by uid 500); 2 Feb 2015 22:26:20 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 58093 invoked by uid 500); 2 Feb 2015 22:26:20 -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 57448 invoked by uid 99); 2 Feb 2015 22:25:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 22:25:45 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_IMAGE_ONLY_20,HTML_MESSAGE,HTML_SHORT_LINK_IMG_3,RCVD_IN_DNSWL_LOW,SPF_PASS,T_REMOTE_IMAGE X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of burtonator2011@gmail.com designates 209.85.214.177 as permitted sender) Received: from [209.85.214.177] (HELO mail-ob0-f177.google.com) (209.85.214.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 22:25:20 +0000 Received: by mail-ob0-f177.google.com with SMTP id wp18so15428462obc.8 for ; Mon, 02 Feb 2015 14:25:18 -0800 (PST) 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=MjNIZKKf4Bw94yo2On3kvNZTDLhyUx0GHrS0AJdxMu4=; b=PDSOt+m03yPO3HDie9/whnv62xm1tSMai2rtVVZWgSOLfLFauxUJeECmcQytylmjtQ PXGsQuLiWMc8fHPGRtFLLoT5uHSZN/QoBGvWBsps3qfik0bgpDkcD72ffN397t4GVyFE TnfqPl4awdZWwIhMzikfcL0VUgfDP76DdyhKZkovgnxuRVnwvwJNLYUnJTBIm5AWvnDI WSU7Ke4NRuJ9WccescnS3fhwEfq8V/MdzCN5BS+edv7nUTPamK8bPNHhpGJl0navUNt1 YHcMAR87S4Q+5ajMEGyBq/4zDiy34WhM1YPjEBsN5edHlL//exg5NDvs90Q9MXwSC1ii wTPw== X-Received: by 10.202.4.82 with SMTP id 79mr12821461oie.22.1422915918758; Mon, 02 Feb 2015 14:25:18 -0800 (PST) MIME-Version: 1.0 Sender: burtonator2011@gmail.com Received: by 10.183.6.234 with HTTP; Mon, 2 Feb 2015 14:24:58 -0800 (PST) From: Kevin Burton Date: Mon, 2 Feb 2015 14:24:58 -0800 X-Google-Sender-Auth: _PlCbRPcrCjPOKsdEGL9c5Nv7n8 Message-ID: Subject: =?UTF-8?Q?Sending_directly_to_a_queue_doesn=E2=80=99t_raise_ActiveMQ?= =?UTF-8?Q?=2EAdvisory=2EProducer=2EQueue=2E=3E?= To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=001a113c134ee20b3f050e226ddc X-Virus-Checked: Checked by ClamAV on apache.org --001a113c134ee20b3f050e226ddc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I=E2=80=99m unsure if this is a bug or another ActiveMQ idiosyncrasy=E2=80= =A6 If I send to a producer with: MessageProducer producer =3D session.createProducer( dest ); producer.send( message ); That works and I receive the advisory. However, if send like this: MessageProducer producer =3D session.createProducer( null ); producer.send( dest, message ); The advisory isn=E2=80=99t raised. I have a unit test to confirm that the = message was delivered to the queue and that it fails to raise the advisory. The problem is that the second method is about 5x faster than the first. I can certainly rewrite my code, but this could lead to bugs where code expects to receive the advisory notice but now there=E2=80=99s a back door = to send messages without the advisory message meaning that you could break production code. --=20 Founder/CEO Spinn3r.com Location: *San Francisco, CA* blog: http://burtonator.wordpress.com =E2=80=A6 or check out my Google+ profile --001a113c134ee20b3f050e226ddc--