XATopicConnection (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.jms Interface XATopicConnection

所有父接口:
Connection, TopicConnection, XAConnection

public interface XATopicConnection
extends XAConnection, TopicConnection

An XATopicConnection provides the same create options as TopicConnection (optional). The Topic connections created are transactional.

The XATopicConnection interface is optional. JMS providers are not required to support this interface. This interface is for use by JMS providers to support transactional environments. Client programs are strongly encouraged to use the transactional support available in their environment, rather than use these XA interfaces directly.

版本:
1.1 - February 2, 2002
作者:
Mark Hapner, Rich Burridge, Kate Stout
另请参见:
XAConnection

方法摘要
 TopicSession createTopicSession(boolean transacted, int acknowledgeMode)
          Creates an XATopicSession object.
 XATopicSession createXATopicSession()
          Creates an XATopicSession object.
 
Methods inherited from interface javax.jms.XAConnection
createSession, createXASession
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from interface javax.jms.TopicConnection
createConnectionConsumer, createDurableConnectionConsumer
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

方法详细信息

createXATopicSession

XATopicSession createXATopicSession()
                                    throws JMSException
Creates an XATopicSession object.

返回:
a newly created XA topic session
抛出异常:
JMSException - if the XATopicConnection object fails to create an XA topic session due to some internal error.

createTopicSession

TopicSession createTopicSession(boolean transacted,
                                int acknowledgeMode)
                                throws JMSException
Creates an XATopicSession object.

规范说明:
createTopicSession in interface TopicConnection
参数:
transacted - usage undefined
acknowledgeMode - usage undefined
返回:
a newly created XA topic session
抛出异常:
JMSException - if the XATopicConnection object fails to create an XA topic session due to some internal error.
另请参见:
Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, Session.DUPS_OK_ACKNOWLEDGE

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.