XAQueueConnection (Java EE 5 SDK)

Java

Java EE 5 SDK

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


javax.jms Interface XAQueueConnection

所有父接口:
Connection, QueueConnection, XAConnection

public interface XAQueueConnection
extends XAConnection, QueueConnection

An XAQueueConnection provides the same create options as QueueConnection (optional). The only difference is that an XAConnection is by definition transacted.

The XAQueueConnection 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

方法摘要
 QueueSession createQueueSession(boolean transacted, int acknowledgeMode)
          Creates an XAQueueSession object.
 XAQueueSession createXAQueueSession()
          Creates an XAQueueSession object.
 
Methods inherited from interface javax.jms.XAConnection
createSession, createXASession
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 
Methods inherited from interface javax.jms.QueueConnection
createConnectionConsumer
 
Methods inherited from interface javax.jms.Connection
close, createConnectionConsumer, createDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
 

方法详细信息

createXAQueueSession

XAQueueSession createXAQueueSession()
                                    throws JMSException
Creates an XAQueueSession object.

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

createQueueSession

QueueSession createQueueSession(boolean transacted,
                                int acknowledgeMode)
                                throws JMSException
Creates an XAQueueSession object.

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

Java EE 5 SDK

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


提交错误或意见

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