You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (JIRA)" <ji...@apache.org> on 2019/04/19 15:13:00 UTC

[jira] [Comment Edited] (ARTEMIS-2315) Incorrect Routing type of the queue created

    [ https://issues.apache.org/jira/browse/ARTEMIS-2315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16821981#comment-16821981 ] 

Justin Bertram edited comment on ARTEMIS-2315 at 4/19/19 3:12 PM:
------------------------------------------------------------------

This appears to have been broken since the 2.0.0 release via [7a51491c3235d5bcbc0407f38b7b080b926eaf00|https://github.com/apache/activemq-artemis/commit/7a51491c3235d5bcbc0407f38b7b080b926eaf00#diff-4fadb0128b8c40d7ad62cf3fcba0c132R379]. Strangely enough, there's no usage of this call anywhere in the test-suite.

As a work-around you can use the overloaded version which takes {{SimpleString}} instances instead of {{String}} instances, e.g.:
{code:java}
session.createQueue(SimpleString.toSimpleString(addressName), RoutingType.ANYCAST, SimpleString.toSimpleString("routing_type"), null, false, false);
{code}


was (Author: jbertram):
This appears to have been broken since the 2.0.0 release via [7a51491c3235d5bcbc0407f38b7b080b926eaf00|https://github.com/apache/activemq-artemis/commit/7a51491c3235d5bcbc0407f38b7b080b926eaf00#diff-4fadb0128b8c40d7ad62cf3fcba0c132R379]. Strangely enough, there's no usage of this call anywhere in the test-suite.

As a work-around you can use the overloaded version which takes {{SimpleString}} instances instead of {{String}} instances, e.g.:

{code:java}
session.createQueue(StimpleString.toSimpleString(addressName), RoutingType.ANYCAST, StimpleString.toSimpleString("routing_type"), null, false, false);
{code}

> Incorrect Routing type of the queue created
> -------------------------------------------
>
>                 Key: ARTEMIS-2315
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2315
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>         Environment: I am using the maven dependency version 2.7.0 for the artemis-core-client in this test. 
>            Reporter: Riyafa Abdul Hameed
>            Priority: Blocker
>
> When I create a queue using the following code a MULTICAST queue gets created whereas I want to create an ANYCAST queue:
>  
> {code:java}
> ServerLocator locator = ActiveMQClient.createServerLocator("tcp://localhost:61616");
> ClientSessionFactory factory = locator.createSessionFactory();
> ClientSession session = factory.createSession();
> session.createQueue(addressName, RoutingType.ANYCAST, "routing_type", null, false, false);
> {code}
> I am using the maven dependency version 2.7.0 for the artemis-core-client in this test. 
> {color:#cc7832} {color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)