Package oracle.tmm.jta.common
Class TrmConnectionFactory
java.lang.Object
oracle.tmm.jta.common.TrmConnectionFactory
- All Implemented Interfaces:
Supplier<Connection>
@Provider
@RequestScoped
public class TrmConnectionFactory
extends Object
implements Supplier<Connection>
OTMM(MicroTx) connection factory to create a connection to the database configured with TMM(MicroTx) Library
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Get connection to the database configured with OTMM(MicroTx)getConnection
(String dataSourceName) getXAConn
(javax.enterprise.inject.spi.InjectionPoint ip) Get a connection to the database configured with OTTM(MicroTx)NonActiveXAConnection
(String dataSourceName)
-
Constructor Details
-
TrmConnectionFactory
public TrmConnectionFactory()
-
-
Method Details
-
getXAConn
@Produces public Connection getXAConn(javax.enterprise.inject.spi.InjectionPoint ip) throws TrmConnectionException Get a connection to the database configured with OTTM(MicroTx)- Returns:
- Connection to the database
- Throws:
TrmConnectionException
-
NonActiveXAConnection
- Throws:
TrmConnectionException
-
get
Get connection to the database configured with OTMM(MicroTx)- Specified by:
get
in interfaceSupplier<Connection>
- Returns:
- Connection to the database
- Throws:
TrmConnectionException
-
getConnection
public Connection getConnection(String dataSourceName) throws TrmConnectionException, TrmPromoteException
-