ARTEMIS-802 Broker does not throw exception on divert with no name
This commit is contained in:
parent
ad602780c7
commit
b08b91a32f
|
@ -104,6 +104,9 @@ public interface ActiveMQMessageBundle {
|
|||
value = "Did not receive data from {0} within the {1}ms connection TTL. The connection will now be closed.", format = Message.Format.MESSAGE_FORMAT)
|
||||
ActiveMQConnectionTimedOutException clientExited(String remoteAddress, long ttl);
|
||||
|
||||
@Message(id = 119015, value = "Must specify a name for each divert. This one will not be deployed.", format = Message.Format.MESSAGE_FORMAT)
|
||||
ActiveMQInternalErrorException divertWithNoName();
|
||||
|
||||
@Message(id = 119017, value = "Queue {0} does not exist", format = Message.Format.MESSAGE_FORMAT)
|
||||
ActiveMQNonExistentQueueException noSuchQueue(SimpleString queueName);
|
||||
|
||||
|
|
|
@ -346,10 +346,6 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
|||
@Message(id = 222002, value = "Timed out waiting for pool to terminate {0}. Interrupting all its threads!", format = Message.Format.MESSAGE_FORMAT)
|
||||
void timedOutStoppingThreadpool(ExecutorService service);
|
||||
|
||||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 222003, value = "Must specify a name for each divert. This one will not be deployed.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void divertWithNoName();
|
||||
|
||||
@LogMessage(level = Logger.Level.WARN)
|
||||
@Message(id = 222004, value = "Must specify an address for each divert. This one will not be deployed.", format = Message.Format.MESSAGE_FORMAT)
|
||||
void divertWithNoAddress();
|
||||
|
|
|
@ -1649,9 +1649,7 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
|||
@Override
|
||||
public void deployDivert(DivertConfiguration config) throws Exception {
|
||||
if (config.getName() == null) {
|
||||
ActiveMQServerLogger.LOGGER.divertWithNoName();
|
||||
|
||||
return;
|
||||
throw ActiveMQMessageBundle.BUNDLE.divertWithNoName();
|
||||
}
|
||||
|
||||
if (config.getAddress() == null) {
|
||||
|
|
Loading…
Reference in New Issue