FudgeRequestDispatcher dispatcher = new FudgeRequestDispatcher(receiver);
String topicName = getJmsSubscriptionTopic();
if (topicName != null) {
JmsByteArrayRequestDispatcher topicDispatcher = new JmsByteArrayRequestDispatcher(dispatcher);
JmsTopicContainer topicContainer = getJmsConnector().getTopicContainerFactory().create(topicName, topicDispatcher);
repo.registerLifecycle(topicContainer);
}
String queueName = getJmsSubscriptionQueue();
if (queueName != null) {
JmsByteArrayRequestDispatcher queueDispatcher = new JmsByteArrayRequestDispatcher(dispatcher);
JmsQueueContainer queueContainer = getJmsConnector().getQueueContainerFactory().create(queueName,
queueDispatcher,
getJmsSubscriptionQueueConcurrentConsumers(),
getJmsSubscriptionQueueMaxConcurrentConsumers());
repo.registerLifecycle(queueContainer);