Lionel Cons created ARTEMIS-1802:

             Summary: Cannot use the same name for a divert and an address
                 Key: ARTEMIS-1802
             Project: ActiveMQ Artemis
          Issue Type: Bug
    Affects Versions: 2.5.0
            Reporter: Lionel Cons

I'm trying to use diverts to emulate ActiveMQ 5's virtual destinations 
( The use case is a 
single topic ({{foo}}) bound to two queues ({{foo-test}} and {{foo-prod}}).

The following configuration snippet almost works:
        <!-- the receiving topic "foo" -->
        <address name="foo">
        <!-- the backend queue "test" -->
        <address name="foo-test">
            <queue name="foo-test"/>
        <!-- the backend queue "prod" -->
        <address name="foo-prod">
            <queue name="foo-prod"/>

        <!-- the divert to copy from "foo" to "foo-test" -->
        <divert name="foo-test">
        <!-- the divert to copy from "foo" to "foo-prod" -->
        <divert name="foo-prod">

Artemis give me an error:
AMQ222006: Binding already exists with name foo-test, divert will not be 

Changing the divert names fixes the problem.

Why can't I use the same name both for the queue and the divert feeding the 

Since these are different kinds of objects, I should be able to reuse the same 
name, shouldn't I?

This message was sent by Atlassian JIRA

Reply via email to