throw new JMSException("The underlying JMS Session does not support TopicSession semantics: " + session);
}
}
public SessionAndProducer getSessionAndProducer() throws JMSException {
SessionAndProducer answer = SessionAndProducerHelper.getActiveSessionAndProducer();
if (answer == null) {
throw new JMSException("No currently active Session. This JMS provider cannot be used outside a MessageListener.onMessage() invocation");
}
return answer;
}