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:
James Strachan 2006-07-04 11:54:24 +00:00
parent 4b08ea5c04
commit 0c2c5c6a19
1 changed files with 3 additions and 0 deletions

View File

@ -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);