站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 connector API Documentation 英文版文档

XAOracleManagedConnection (JBoss Connector API) - JBoss 3.2.7 connector API Documentation 英文版文档


org.jboss.resource.adapter.jdbc.xa.oracle
Class XAOracleManagedConnection

java.lang.Object
  extended byorg.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
      extended byorg.jboss.resource.adapter.jdbc.xa.XAManagedConnection
          extended byorg.jboss.resource.adapter.jdbc.xa.oracle.XAOracleManagedConnection
All Implemented Interfaces:
javax.resource.spi.ManagedConnection, XAResource

public class XAOracleManagedConnection
extends XAManagedConnection

Specialization of XAManagedConnection that provides a workaround for oracle specific problems.

Theoretically, this wrapper could be used to convert Xid instances into oracle-specific format (i.e. add necessary padding to global and branch qualifiers) thus eliminating a need in XidFactory#setPad(boolean). However, we need to measure performance impact first.

Version:
$Revision:$
Author:
Igor Fedorenko.

Field Summary
 
Fields inherited from class org.jboss.resource.adapter.jdbc.xa.XAManagedConnection
currentXid, xaConnection, xaResource
 
Fields inherited from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
con, destroyed, inManagedTransaction, jdbcAutoCommit, jdbcReadOnly, jdbcTransactionIsolation, mcf, props, setQueryTimeout, stateLock, underlyingAutoCommit, underlyingReadOnly
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
XAOracleManagedConnection(XAManagedConnectionFactory mcf, XAConnection xaConnection, Properties props, int transactionIsolation, int psCacheSize, boolean doQueryTimeout)
          Constructor for XAResourceWrapper.
 
Method Summary
 boolean isSameRM(XAResource ignored)
          This is a workaround for a problem with oracle xa resource manager which requires separate transaction branch for all connections envolved into the transaction (as if these connections belong to different resource managers).
 
Methods inherited from class org.jboss.resource.adapter.jdbc.xa.XAManagedConnection
broadcastConnectionError, commit, destroy, end, forget, getLocalTransaction, getTransactionTimeout, getXAResource, prepare, recover, rollback, setTransactionTimeout, start
 
Methods inherited from class org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection
addConnectionEventListener, associateConnection, checkException, checkState, checkValid, cleanup, getConnection, getLog, getLogWriter, getMetaData, removeConnectionEventListener, setLogWriter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XAOracleManagedConnection

public XAOracleManagedConnection(XAManagedConnectionFactory mcf,
                                 XAConnection xaConnection,
                                 Properties props,
                                 int transactionIsolation,
                                 int psCacheSize,
                                 boolean doQueryTimeout)
                          throws SQLException
Constructor for XAResourceWrapper.

Parameters:
mcf -
xaConnection -
props -
transactionIsolation -
Throws:
SQLException
Method Detail

isSameRM

public boolean isSameRM(XAResource ignored)
                 throws XAException

This is a workaround for a problem with oracle xa resource manager which requires separate transaction branch for all connections envolved into the transaction (as if these connections belong to different resource managers).

Specified by:
isSameRM in interface XAResource
Overrides:
isSameRM in class XAManagedConnection
Returns:
Throws:
XAException -
See Also:
XAResource.isSameRM(XAResource)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.