MessageStore createMessageStore(ActiveMQDestination destination) throws IOException { if (destination.isQueue()) { return createQueueMessageStore((ActiveMQQueue)destination); } else { return createTopicMessageStore((ActiveMQTopic)destination); } }
MessageStore createMessageStore(ActiveMQDestination destination) throws IOException { if (destination.isQueue()) { return createQueueMessageStore((ActiveMQQueue)destination); } else { return createTopicMessageStore((ActiveMQTopic)destination); } }