Package com.oracle.microtx.common
Class MicroTxNonXAConfig
java.lang.Object
com.oracle.microtx.common.MicroTxNonXAConfig
Configuration class to provide Non XA DataSource information to MicroTx Library
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
initNonXaDataSource
(DataSource dataSource) This function specifies the NonXADataSource object to be used by MicroTx library.static void
initNonXaDataSource
(DataSource dataSource, DataSourceInfo dataSourceInfo) This function specifies the NonXADataSource object to be used by MicroTx library.
-
Method Details
-
initNonXaDataSource
public static void initNonXaDataSource(DataSource dataSource, DataSourceInfo dataSourceInfo) throws SQLException This function specifies the NonXADataSource object to be used by MicroTx library. The application is responsible for using the NonXA compliant JDBC driver and setting the required parameters while initializing DataSource.- Parameters:
dataSource
- NonXA data sourcedataSourceInfo
- Datasource Info object to give addition details regarding the datasource- Throws:
SQLException
-
initNonXaDataSource
This function specifies the NonXADataSource object to be used by MicroTx library. The application is responsible for using the NonXA compliant JDBC driver and setting the required parameters while initializing DataSource.- Parameters:
dataSource
- NonXA data source- Throws:
SQLException
-