broadcastTopic = broadcastSession.createTopic(broadcastDestinationName);
MessageConsumer broadcastConsumer = broadcastSession.createConsumer(broadcastTopic, null, true);
broadcastConsumer.setMessageListener(this);
topicProducer = broadcastSession.createProducer(broadcastTopic);
topicProducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
advisor = new ConsumerAdvisor(connection, broadcastTopic);
advisor.addListener(this);
}
catch (JMSException e) {
log.error("Failed to initialize JMSFlow", e);
throw new JBIException(e);