Search in sources :

Example 36 with Connection

use of javax.resource.cci.Connection in project wildfly by wildfly.

the class AbstractModuleDeploymentTestCase method testConnectionFactory.

/**
     * Test configuration
     *
     * @throws Throwable in case of an error
     */
public void testConnectionFactory(ConnectionFactory connectionFactory) throws Throwable {
    assertNotNull(connectionFactory);
    Connection c = connectionFactory.getConnection();
    assertNotNull(c);
    c.close();
}
Also used : Connection(javax.resource.cci.Connection)

Aggregations

Connection (javax.resource.cci.Connection)36 Test (org.junit.Test)28 ConnectionFactory (javax.resource.cci.ConnectionFactory)25 Interaction (javax.resource.cci.Interaction)23 InteractionSpec (javax.resource.cci.InteractionSpec)22 Record (javax.resource.cci.Record)22 CciTemplate (org.springframework.jca.cci.core.CciTemplate)19 IndexedRecord (javax.resource.cci.IndexedRecord)15 MappedRecord (javax.resource.cci.MappedRecord)15 RecordFactory (javax.resource.cci.RecordFactory)10 RecordCreator (org.springframework.jca.cci.core.RecordCreator)10 NotSupportedRecordFactory (org.springframework.jca.cci.connection.NotSupportedRecordFactory)8 ResourceException (javax.resource.ResourceException)4 NotSupportedException (javax.resource.NotSupportedException)3 LocalTransactionException (javax.resource.spi.LocalTransactionException)3 SimpleRecordOperation (org.springframework.jca.cci.object.SimpleRecordOperation)3 TransactionSystemException (org.springframework.transaction.TransactionSystemException)3 LocalTransaction (javax.resource.cci.LocalTransaction)2 ManagedConnection (javax.resource.spi.ManagedConnection)2 ContainerSystem (org.apache.openejb.spi.ContainerSystem)2