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 ACDEF200C8C for ; Tue, 6 Jun 2017 16:31:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ABD8C160BC3; Tue, 6 Jun 2017 14:31:22 +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 005DB160BC6 for ; Tue, 6 Jun 2017 16:31:21 +0200 (CEST) Received: (qmail 34305 invoked by uid 500); 6 Jun 2017 14:31:21 -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 34209 invoked by uid 99); 6 Jun 2017 14:31:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2017 14:31:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 9C642C1309 for ; Tue, 6 Jun 2017 14:31:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.201 X-Spam-Level: X-Spam-Status: No, score=-99.201 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id noE1CAkxbsx2 for ; Tue, 6 Jun 2017 14:31:19 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 6E3445FBAB for ; Tue, 6 Jun 2017 14:31:19 +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 DE24BE0D63 for ; Tue, 6 Jun 2017 14:31:18 +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 4969021E10 for ; Tue, 6 Jun 2017 14:31:18 +0000 (UTC) Date: Tue, 6 Jun 2017 14:31:18 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARTEMIS-1207) [Core JMS Client] Align order of when setClientId can be called with AcitveMQ5 and QPID MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 06 Jun 2017 14:31:22 -0000 [ https://issues.apache.org/jira/browse/ARTEMIS-1207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16038983#comment-16038983 ] ASF GitHub Bot commented on ARTEMIS-1207: ----------------------------------------- Github user michaelandrepearce commented on a diff in the pull request: https://github.com/apache/activemq-artemis/pull/1317#discussion_r120377162 --- Diff: tests/integration-tests/src/test/java/org/apache/activemq/artemis/tests/integration/jms/connection/ExceptionListenerTest.java --- @@ -143,4 +143,22 @@ public void testListenerCalledForOneConnectionAndSessions() throws Exception { conn.close(); } + + /** + * The JMS Spec isn't specific about if ClientId can be set after Exception Listener or not, + * simply it states that clientId must be set before any operation (read as remote) + * + * QpidJMS and ActiveMQ5 both interpret that therefor you can set the exception lister first. + * As such we align with those, allowing the exception listener to be set prior to the clientId, + * This to avoid causing implementation nuance's, when switching code from one client to another. + * + * This test is to test this and to ensure it doesn't get accidentally regressed. + */ + @Test + public void testSetClientIdAfterSetExceptionListener() throws Exception { + Connection conn = cf.createConnection(); --- End diff -- the issue was setExceptionListener that we were hitting, but you're correct getExceptionListener should be the same, we should add that test, will add. > [Core JMS Client] Align order of when setClientId can be called with AcitveMQ5 and QPID > --------------------------------------------------------------------------------------- > > Key: ARTEMIS-1207 > URL: https://issues.apache.org/jira/browse/ARTEMIS-1207 > Project: ActiveMQ Artemis > Issue Type: Bug > Reporter: Michael Andre Pearce > > There is a difference in behaviour of when it is valid to be able to set clientId though it seems the behaviour isn't clear in JMS spec, where QPID and ActiveMQ5 allow you to set an exception listener first, where as currently Artemis requires the very first call to setClientId if you wish to set it. > As discussed will create and align the clients so even so not detailed in spec, a user of ActiveMQ5 client or QPID client can expect the same behaviour. -- This message was sent by Atlassian JIRA (v6.3.15#6346)