public interface XAConnection extends Connection
XAConnection
インターフェースは、XASession
(オプション)を提供することにより、Connection
の機能を継承します。XAConnection
インターフェースはオプションです。Jakarta Messaging プロバイダーは、このインターフェースをサポートする必要はありません。このインターフェースは、トランザクション環境をサポートするために Jakarta Messaging プロバイダーが使用するためのものです。クライアントプログラムでは、これらの XA インターフェースを直接使用するのではなく、環境で利用可能なトランザクションサポートを使用することを強くお勧めします。
XAQueueConnection
, XATopicConnection
修飾子と型 | メソッドと説明 |
---|---|
Session | createSession(boolean transacted, int acknowledgeMode) Session オブジェクトを作成します。 |
XASession | createXASession() XASession オブジェクトを作成します。 |
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop
XASession createXASession() throws JMSException
XASession
オブジェクトを作成します。XASession
JMSException
- 内部エラーのために XAConnection
オブジェクトが XASession
の作成に失敗した場合。Session createSession(boolean transacted, int acknowledgeMode) throws JMSException
Session
オブジェクトを作成します。Connection
の createSession
transacted
- 使用箇所は未定義 acknowledgeMode
- 使用箇所は未定義 Session
JMSException
- 内部エラーのために XAConnection
オブジェクトが Session
の作成に失敗した場合。Session.AUTO_ACKNOWLEDGE
, Session.CLIENT_ACKNOWLEDGE
, Session.DUPS_OK_ACKNOWLEDGE
, Connection.createSession(int)
, Connection.createSession()
Copyright © 2018,2020 Eclipse Foundation.
Use is subject to license terms.