AnXATopicConnection
provides the same create options asTopicConnection
(optional). The only difference is that anXAConnection
is by definition transacted.
XAConnection
createTopicSession(boolean transacted, int acknowledgeMode) Creates an XATopicSession object. | |
createXATopicSession() Creates an XATopicSession object. |
Methods inherited from interface javax.jms.TopicConnection |
createConnectionConsumer,createDurableConnectionConsumer |
Methods inherited from interface javax.jms.Connection |
close,getClientID,getExceptionListener,getMetaData,setClientID,setExceptionListener,start,stop |
publicXATopicSessioncreateXATopicSession() throwsJMSException
XATopicSession
object.JMSException
- if theXATopicConnection
object fails to create an XA topic session due to some internal error.publicTopicSessioncreateTopicSession(boolean transacted, int acknowledgeMode) throwsJMSException
XATopicSession
object.createTopicSession
in interfaceTopicConnection
transacted
- usage undefinedacknowledgeMode
- usage undefinedJMSException
- if theXATopicConnection
object fails to create an XA topic session due to some internal error.