FileDocCategorySizeDatePackage
CachedConnectionManagerReference.javaAPI DocJBoss 4.2.12776Fri Jul 13 21:01:18 BST 2007org.jboss.resource.connectionmanager

CachedConnectionManagerReference

public class CachedConnectionManagerReference extends Object
This should be removed when JCA is refactored as POJOs This is just to avoid the start/stop sequence of CachedConnectionManager when it is created by a container as CachedConnectionManager tries to locate things through MBEan calls.
author
Bill Burke
version
$Revision: 57189 $

Fields Summary
private CachedConnectionManager
cachedConnectionManager
private TransactionManager
transactionManager
Constructors Summary
Methods Summary
public CachedConnectionManagergetCachedConnectionManager()


     
   
      return cachedConnectionManager;
   
public javax.transaction.TransactionManagergetTransactionManager()

      return transactionManager;
   
public voidsetCachedConnectionManager(CachedConnectionManager cachedConnectionManager)

      this.cachedConnectionManager = cachedConnectionManager;
   
public voidsetTransactionManager(javax.transaction.TransactionManager transactionManager)

      this.transactionManager = transactionManager;
   
public voidstart()

      TransactionSynchronizer.setTransactionManager(transactionManager);
      ServerVMClientUserTransaction.getSingleton().registerTxStartedListener(cachedConnectionManager);
      EnterpriseContext.setUserTransactionStartedListener(cachedConnectionManager);
   
public voidstop()

      ServerVMClientUserTransaction.getSingleton().unregisterTxStartedListener(cachedConnectionManager);
      EnterpriseContext.setUserTransactionStartedListener(null);