mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906088 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
caabb6cb3d
commit
5ebfbf0387
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue