ARTEMIS-789 fix ArtemisTest
This commit is contained in:
parent
4424117d65
commit
10a32481fd
|
@ -239,7 +239,7 @@ public class AMQPSessionCallback implements SessionCallback {
|
|||
BindingQueryResult bindingQueryResult = serverSession.executeBindingQuery(SimpleString.toSimpleString(address));
|
||||
if (!bindingQueryResult.isExists() && bindingQueryResult.isAutoCreateQueues()) {
|
||||
try {
|
||||
serverSession.createQueue(new SimpleString(address), new SimpleString(address), null, false, true);
|
||||
serverSession.createQueue(new SimpleString(address), new SimpleString(address), RoutingType.ANYCAST, null, false, true);
|
||||
} catch (ActiveMQQueueExistsException e) {
|
||||
// The queue may have been created by another thread in the mean time. Catch and do nothing.
|
||||
}
|
||||
|
|
|
@ -251,9 +251,9 @@ public class ProtonServerSenderContext extends ProtonInitializable implements Pr
|
|||
Set<RoutingType> routingTypes = addressInfo.getRoutingTypes();
|
||||
//if the client defines 1 routing type and the broker another then throw an exception
|
||||
if (multicast && !routingTypes.contains(RoutingType.MULTICAST)) {
|
||||
throw new ActiveMQAMQPIllegalStateException("Address is not configured for topic support");
|
||||
throw new ActiveMQAMQPIllegalStateException("Address " + addressInfo.getName() + " is not configured for topic support");
|
||||
} else if (!multicast && !routingTypes.contains(RoutingType.ANYCAST)) {
|
||||
throw new ActiveMQAMQPIllegalStateException("Address is not configured for queue support");
|
||||
throw new ActiveMQAMQPIllegalStateException("Address " + addressInfo.getName() + " is not configured for queue support");
|
||||
}
|
||||
} else {
|
||||
//if not we look up the address
|
||||
|
|
Loading…
Reference in New Issue