@Override public TopicSession getTopicSession() throws JMSException { if ((types & TYPE_XA_TOPIC) != TYPE_XA_TOPIC) { throw new IllegalStateException(delegate + " is not an XATopicSession"); } TopicSession xats = ((XATopicSession) delegate).getTopicSession(); return TracingSession.create(xats, jmsTracing); } }
@Override public TopicSession getTopicSession() throws JMSException { return addSession(xaTopicSession.getTopicSession()); } }
@Override public TopicSession getTopicSession() throws JMSException { return addSession( ((XATopicSession) session).getTopicSession()); }
} else if (mcf.getProperties().getType() == JmsConnectionFactory.TOPIC) { xaSession = ((XATopicConnection) con).createXATopicSession(); session = ((XATopicSession)xaSession).getTopicSession(); } else { xaSession = ((XAConnection) con).createXASession();
topicSession = xaTopicSession.getTopicSession(); xaTransacted = true;
return xats.getTopicSession();