{
return false;
}
else
{
HornetQTopic hqTopic = HornetQDestination.createTopic(topicName);
// We create a dummy subscription on the topic, that never receives messages - this is so we can perform JMS
// checks when routing messages to a topic that
// does not exist - otherwise we would not be able to distinguish from a non existent topic and one with no
// subscriptions - core has no notion of a topic
server.deployQueue(SimpleString.toSimpleString(hqTopic.getAddress()),
SimpleString.toSimpleString(hqTopic.getAddress()),
SimpleString.toSimpleString(JMSServerManagerImpl.REJECT_FILTER),
true,
false);
topics.put(topicName, hqTopic);