Package org.jencks.factory

Examples of org.jencks.factory.ConnectionManagerFactoryBean.afterPropertiesSet()


            if (!(txmgr instanceof RecoverableTransactionManager)) {
                txmgr = new RecoverableTransactionManagerWrapper(txmgr);
            }
            cmfb.setTransactionManager((RecoverableTransactionManager) txmgr);
            cmfb.setTransaction("xa");
            cmfb.afterPropertiesSet();
            connectionManager = (ConnectionManager) cmfb.getObject();
        }
        return connectionManager;
    }
View Full Code Here


       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManagerFactoryBean factory = new ConnectionManagerFactoryBean();
        factory.setTransactionManager(tm);
        factory.setTransaction("xa");
        factory.afterPropertiesSet();
        ConnectionManager cm = (ConnectionManager) factory.getObject();
        ManagedConnectionFactory mcf = new DerbyDataSourceMCF("target/testdb");
        dataSource = (DataSource) mcf.createConnectionFactory(cm);

        JdbcStoreFactory storeFactory = new JdbcStoreFactory();
View Full Code Here

       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManagerFactoryBean cmFactory = new ConnectionManagerFactoryBean();
        cmFactory.setTransactionManager(tm);
        cmFactory.setTransaction("xa");
        cmFactory.afterPropertiesSet();
        ConnectionManager cm = (ConnectionManager) cmFactory.getObject();
        ManagedConnectionFactory mcf = new DerbyDataSourceMCF("target/testdb");
        dataSource = (DataSource) mcf.createConnectionFactory(cm);
        JdbcStoreFactory f = new JdbcStoreFactory();
        f.setTransactional(true);
View Full Code Here

            if (!(txmgr instanceof RecoverableTransactionManager)) {
                txmgr = new RecoverableTransactionManagerWrapper(txmgr);
            }
            cmfb.setTransactionManager((RecoverableTransactionManager) txmgr);
            cmfb.setTransaction("xa");
            cmfb.afterPropertiesSet();
            connectionManager = (ConnectionManager) cmfb.getObject();
        }
        return connectionManager;
    }
View Full Code Here

                    true,  // matchAll
                    true)); // selectOneAssumeMatch
          cmfb.setTransactionSupport(new XATransactions(
              true, // useTransactionCaching
              false)); // useThreadCaching
          cmfb.afterPropertiesSet();
      connectionManager = (ConnectionManager) cmfb.getObject();
    }
    return connectionManager;
  }
View Full Code Here

                    true,  // matchAll
                    true)); // selectOneAssumeMatch
          cmfb.setTransactionSupport(new XATransactions(
              true, // useTransactionCaching
              false)); // useThreadCaching
          cmfb.afterPropertiesSet();
      connectionManager = (ConnectionManager) cmfb.getObject();
    }
    return connectionManager;
  }
View Full Code Here

       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManagerFactoryBean factory = new ConnectionManagerFactoryBean();
        factory.setTransactionManager(tm);
        factory.setTransaction("xa");
        factory.afterPropertiesSet();
        ConnectionManager cm = (ConnectionManager) factory.getObject();
        ManagedConnectionFactory mcf = new DerbyDataSourceMCF("target/testdb");
        dataSource = (DataSource) mcf.createConnectionFactory(cm);

        JdbcStoreFactory storeFactory = new JdbcStoreFactory();
View Full Code Here

            if (!(txmgr instanceof RecoverableTransactionManager)) {
                txmgr = new RecoverableTransactionManagerWrapper(txmgr);
            }
            cmfb.setTransactionManager((RecoverableTransactionManager) txmgr);
            cmfb.setTransaction("xa");
            cmfb.afterPropertiesSet();
            connectionManager = (ConnectionManager) cmfb.getObject();
        }
        return connectionManager;
    }
View Full Code Here

       
        // Create an embedded database for testing tx results when commit / rollback
        ConnectionManagerFactoryBean factory = new ConnectionManagerFactoryBean();
        factory.setTransactionManager(tm);
        factory.setTransaction("xa");
        factory.afterPropertiesSet();
        ConnectionManager cm = (ConnectionManager) factory.getObject();
        ManagedConnectionFactory mcf = new DerbyDataSourceMCF("target/testdb");
        dataSource = (DataSource) mcf.createConnectionFactory(cm);
       
        connection = dataSource.getConnection();
View Full Code Here

            if (!(txmgr instanceof RecoverableTransactionManager)) {
                txmgr = new RecoverableTransactionManagerWrapper(txmgr);
            }
            cmfb.setTransactionManager((RecoverableTransactionManager) txmgr);
            cmfb.setTransaction("xa");
            cmfb.afterPropertiesSet();
            connectionManager = (ConnectionManager) cmfb.getObject();
        }
        return connectionManager;
    }
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.