Examples of TxConnectionManager


Examples of org.jboss.resource.connectionmanager.TxConnectionManager

         boolean trackConnectionByTx, boolean localTransactions,
         ObjectName transactionManagerObjectName,
         ObjectName cachedConnectionManagerObjectName,
         ObjectName managedConnectionPoolObjectName) throws Exception
   {
      TxConnectionManager cm = new TxConnectionManager();
      cm.preRegister(mbeanServer, on);
      cm.setTrackConnectionByTx(trackConnectionByTx);
      cm.setLocalTransactions(localTransactions);
     
      // dependencies
      cm.setTransactionManagerService(transactionManagerObjectName);
      cm.setCachedConnectionManager(cachedConnectionManagerObjectName);
      cm.setManagedConnectionPool(managedConnectionPoolObjectName);
     
      mbeanServer.registerMBean(cm, on);
      mbeanServer.invoke(on, "start", new Object[0], new String[0]);
      log.debug("started " + on);
     
View Full Code Here

Examples of org.jboss.resource.connectionmanager.TxConnectionManager

/*     */   public void start() throws Exception
/*     */   {
/*  89 */     if (this.initialContextProperties == null) this.initialContext = new InitialContext(); else {
/*  90 */       this.initialContext = new InitialContext(this.initialContextProperties);
/*     */     }
/*  92 */     this.connectionManager = new TxConnectionManager(this.cachedConnectionManager, this.pool, this.transactionManager);
/*  93 */     this.connectionManager.setLocalTransactions(true);
/*  94 */     this.connectionManager.setTrackConnectionByTx(true);
/*  95 */     this.pool.setConnectionListenerFactory(this.connectionManager);
/*  96 */     this.datasource = this.connectionManager.getPoolingStrategy().getManagedConnectionFactory().createConnectionFactory(new ConnectionManagerDelegate());
/*  97 */     bindConnectionFactory();
View Full Code Here

Examples of org.jboss.resource.connectionmanager.TxConnectionManager

                                                      ObjectName transactionManagerObjectName,
                                                      ObjectName cachedConnectionManagerObjectName,
                                                      ObjectName managedConnectionPoolObjectName)
      throws Exception
   {
      TxConnectionManager cm = new TxConnectionManager();
      cm.preRegister(mbeanServer, on);
      cm.setTrackConnectionByTx(trackConnectionByTx);
      cm.setLocalTransactions(localTransactions);

      // dependencies
      cm.setTransactionManagerService(transactionManagerObjectName);
      cm.setCachedConnectionManager(cachedConnectionManagerObjectName);
      cm.setManagedConnectionPool(managedConnectionPoolObjectName);

      mbeanServer.registerMBean(cm, on);
      mbeanServer.invoke(on, "start", new Object[0], new String[0]);
      log.debug("started " + on);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.