Class MicroTxSqlConnectionBeanFactory
java.lang.Object
com.oracle.microtx.springboot.bean.factory.MicroTxSqlConnectionBeanFactory
Connection factory to create the Connection to the database configured with MicroTx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection
(String dataSourceName) microTxSqlConnection
(String dataSourceName) Get the Connection to the database configured with MicroTxNonActiveXAConnection
(String dataSourceName)
-
Constructor Details
-
MicroTxSqlConnectionBeanFactory
public MicroTxSqlConnectionBeanFactory()
-
-
Method Details
-
microTxSqlConnection
@Bean(name="microTxSqlConnection") @Scope("prototype") public Connection microTxSqlConnection(@Autowired(required=false) String dataSourceName) Get the Connection to the database configured with MicroTx- Parameters:
dataSourceName
- is the name of the XA resource provided during Configuration . It is optional parameter for single Resource Manager , if not provided the function will use default value.- Returns:
- Connection to the database
-
NonActiveXAConnection
- Throws:
TrmConnectionException
-
getConnection
-