mirror of https://github.com/apache/activemq.git
spring cleaning; catch bad ackMode configurations and throw an exception
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@418987 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4b08ea5c04
commit
0c2c5c6a19
|
@ -70,6 +70,9 @@ public class Subscription {
|
|||
MessageAck ack = new MessageAck(md, MessageAck.STANDARD_ACK_TYPE, 1);
|
||||
format.enqueueCommand(ack);
|
||||
}
|
||||
else {
|
||||
throw new JMSException("Unknown ackMode: " + ackMode);
|
||||
}
|
||||
|
||||
|
||||
FrameBuilder builder = new FrameBuilder(Stomp.Responses.MESSAGE);
|
||||
|
|
Loading…
Reference in New Issue