git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2010-02-03 15:36:12 +00:00
parent caabb6cb3d
commit 5ebfbf0387
1 changed files with 55 additions and 50 deletions

View File

@ -386,6 +386,11 @@ public class ProtocolConverter {
String destination = headers.get(Stomp.Headers.Subscribe.DESTINATION);
ActiveMQDestination actualDest = translator.convertDestination(this, destination);
if (actualDest == null) {
throw new ProtocolException("Invalid Destination.");
}
ConsumerId id = new ConsumerId(sessionId, consumerIdGenerator.getNextSequenceId());
ConsumerInfo consumerInfo = new ConsumerInfo(id);
consumerInfo.setPrefetchSize(1000);