Class MicroTxXAConnectionBeanFactory
java.lang.Object
com.oracle.microtx.springboot.bean.factory.MicroTxXAConnectionBeanFactory
Connection factory to create the Connection to the database configured with MicroTx
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConnection<wbr>(String dataSourceName)microTxSqlConnection<wbr>(String dataSourceName)Get the Connection to the database configured with MicroTx
-
Constructor Details
-
MicroTxXAConnectionBeanFactory
public MicroTxXAConnectionBeanFactory()
-
-
Method Details
-
microTxSqlConnection
@Bean(name="microTxXAConnection") @Scope("prototype") public XAConnection microTxSqlConnection<wbr>(@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
-
getConnection
-