当前页面:
在线文档首页 >
Java Platform, Enterprise Edition v1.3.1 API Specifications
Java 2 Platform EE v1.3: Interface XATopicConnection - Java Platform, Enterprise Edition v1.3.1 API Specifications
javax.jms
Interface XATopicConnection
- All Superinterfaces:
- Connection, TopicConnection, XAConnection
- public interface XATopicConnection
- extends XAConnection, TopicConnection
An XATopicConnection provides the same create options as
TopicConnection (optional).
The only difference is that an XAConnection is by definition
transacted.
- See Also:
XAConnection
createXATopicSession
public XATopicSession createXATopicSession()
throws JMSException
- Creates an
XATopicSession object.
- Returns:
- a newly created XA topic session
- Throws:
JMSException - if the XATopicConnection object
fails to create an XA topic session due to some
internal error.
createTopicSession
public TopicSession createTopicSession(boolean transacted,
int acknowledgeMode)
throws JMSException
- Creates an
XATopicSession object.
- Specified by:
createTopicSession in interface TopicConnection
- Parameters:
transacted - usage undefinedacknowledgeMode - usage undefined- Returns:
- a newly created XA topic session
- Throws:
JMSException - if the XATopicConnection object
fails to create an XA topic session due to some
internal error.