Package org.jboss.jca.core.connectionmanager

Examples of org.jboss.jca.core.connectionmanager.ConnectionManager


    */
   public boolean testConnection()
   {
      try
      {
         ConnectionManager cm = (ConnectionManager)getConnectionListenerFactory();
         ManagedConnectionFactory mcf = getManagedConnectionFactory();
      
         Subject subject = createSubject(cm.getSubjectFactory(), cm.getSecurityDomain(), mcf);
 
         if (subject != null)
            return internalTestConnection(subject);
      }
      catch (Throwable t)
View Full Code Here


    */
   public boolean testConnection()
   {
      try
      {
         ConnectionManager cm = (ConnectionManager)getConnectionListenerFactory();
         ManagedConnectionFactory mcf = getManagedConnectionFactory();
      
         Subject subject = createSubject(cm.getSubjectFactory(), cm.getSecurityDomain(), mcf);
 
         if (subject != null)
            return internalTestConnection(subject);
      }
      catch (Throwable t)
View Full Code Here

        }

        // Select the correct connection manager
        TransactionSupport.TransactionSupportLevel tsl = TransactionSupport.TransactionSupportLevel.XATransaction;
        ConnectionManagerFactory cmf = new ConnectionManagerFactory();
        ConnectionManager cm = cmf.createTransactional(tsl, pool, null, allocationRetry, allocationRetryWaitMillis,
                getTransactionManager(), interleaving, xaResourceTimeout, isSameRMOverride, wrapXAResource, padXid);

        cm.setJndiName(jndiName);

        return cm;
    }
View Full Code Here

        }

        // Select the correct connection manager
        final TransactionSupport.TransactionSupportLevel tsl = TransactionSupport.TransactionSupportLevel.LocalTransaction;
        final ConnectionManagerFactory cmf = new ConnectionManagerFactory();
        final ConnectionManager cm = cmf.createTransactional(tsl, pool, null, allocationRetry, allocationRetryWaitMillis,
                getTransactionManager(), null, null, null, null, null);

        cm.setJndiName(jndiName);
        return cm;
    }
View Full Code Here

    public synchronized void start(StartContext startContext) throws StartException {
        try {
            final ManagedConnectionFactory mcf = createManagedConnectionFactory(jndiName, driverValue.getValue());
            final Pool pool = createPool(jndiName, mcf);
            final ConnectionManager cm = createConnectionManager(jndiName, pool);
            sqlDataSource = (javax.sql.DataSource) mcf.createConnectionFactory(cm);
        } catch (Throwable t) {
            throw new StartException("Error during the deployment of " + jndiName, t);
        }
    }
View Full Code Here

    */
   public boolean testConnection()
   {
      try
      {
         ConnectionManager cm = (ConnectionManager)getConnectionListenerFactory();
         ManagedConnectionFactory mcf = getManagedConnectionFactory();
      
         Subject subject = createSubject(cm.getSubjectFactory(), cm.getSecurityDomain(), mcf);
 
         if (subject != null)
            return internalTestConnection(null, subject);
      }
      catch (Throwable t)
View Full Code Here

        String securityDomain = dataSourceConfig.getSecurity() != null ? dataSourceConfig.getSecurity().getSecurityDomain()
                : null;
        // Select the correct connection manager
        TransactionSupport.TransactionSupportLevel tsl = TransactionSupport.TransactionSupportLevel.XATransaction;
        ConnectionManagerFactory cmf = new ConnectionManagerFactory();
        ConnectionManager cm = cmf.createTransactional(tsl, pool, null, securityDomain, allocationRetry,
                allocationRetryWaitMillis, getTransactionIntegration(), interleaving, xaResourceTimeout, isSameRMOverride,
                wrapXAResource, padXid);

        cm.setJndiName(jndiName);

        return cm;
    }
View Full Code Here

        }

        // Select the correct connection manager
        final TransactionSupport.TransactionSupportLevel tsl = TransactionSupport.TransactionSupportLevel.LocalTransaction;
        final ConnectionManagerFactory cmf = new ConnectionManagerFactory();
        final ConnectionManager cm = cmf.createTransactional(tsl, pool, null, null, allocationRetry, allocationRetryWaitMillis,
                getTransactionIntegration(), null, null, null, null, null);

        cm.setJndiName(jndiName);
        return cm;
    }
View Full Code Here

    public synchronized void start(StartContext startContext) throws StartException {
        try {
            final ManagedConnectionFactory mcf = createManagedConnectionFactory(jndiName, driverValue.getValue());
            final Pool pool = createPool(jndiName, mcf);
            final ConnectionManager cm = createConnectionManager(jndiName, pool);
            sqlDataSource = (javax.sql.DataSource) mcf.createConnectionFactory(cm);
        } catch (Throwable t) {
            throw new StartException("Error during the deployment of " + jndiName, t);
        }
    }
View Full Code Here

    */
   public boolean testConnection()
   {
      try
      {
         ConnectionManager cm = (ConnectionManager)getConnectionListenerFactory();
         ManagedConnectionFactory mcf = getManagedConnectionFactory();
      
         Subject subject = createSubject(cm.getSubjectFactory(), cm.getSecurityDomain(), mcf);
 
         if (subject != null)
            return internalTestConnection(subject);
      }
      catch (Throwable t)
View Full Code Here

TOP

Related Classes of org.jboss.jca.core.connectionmanager.ConnectionManager

Copyright © 2018 www.massapicom. 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.