Skip to content

Commit

Permalink
HORNETQ-477 - Queues bound to wildcard addresses canoot be deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
andytaylor committed Aug 16, 2010
1 parent cbf622e commit 5b9fc0a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion src/main/org/hornetq/core/postoffice/impl/AddressImpl.java
Expand Up @@ -62,7 +62,10 @@ public List<Address> getLinkedAddresses()

public void addLinkedAddress(final Address address)
{
linkedAddresses.add(address);
if(!linkedAddresses.contains(address))
{
linkedAddresses.add(address);
}
}

public void removeLinkedAddress(final Address actualAddress)
Expand Down
Expand Up @@ -181,7 +181,7 @@ public void connectionClosed()
}


public void _testQueueWithWildcard() throws Exception
public void testQueueWithWildcard() throws Exception
{
session.createQueue("a.b", "queue1");
session.createTemporaryQueue("a.#", "queue2");
Expand Down Expand Up @@ -221,7 +221,7 @@ public void _testQueueWithWildcard() throws Exception
}


public void _testQueueWithWildcard2() throws Exception
public void testQueueWithWildcard2() throws Exception
{
session.createQueue("a.b", "queue1");
session.createTemporaryQueue("a.#", "queue2");
Expand Down

0 comments on commit 5b9fc0a

Please sign in to comment.