Atomikos Forum |
|
Can someone provide an example of configuration in spring using oraclexadatasource and atomikos. I tried using 3.3 <bean id="datasource"
class="com.atomikos.jdbc.AtomikosDataSourceBean" init-method="init" destroy-method="close"> <property name="uniqueResourceName"><value>XADBMS</value></property> <property name="xaDataSourceClassName"><value>oracle.jdbc.xa.OracleXADataSource</value></property> <property name="xaProperties"> <props> <prop key="user">ren_prod</prop> <prop key="portNumber">1521</prop> </props> </property> <property name="poolSize"><value>1</value></property> </bean> and am getting error: cannot initialize AtomikosDataSourceBean: null
Try this:
<bean id="datasource" class="com.atomikos.jdbc.AtomikosDataSourceBean" init-method="init" destroy-method="close"> <property name="uniqueResourceName"><value>XADBMS</value></property> <property name="xaDataSourceClassName"><value>oracle.jdbc.xa.OracleXADataSource</value></property> <property name="xaProperties"> <props> <prop key="user">ren_prod</prop> <prop key="password">my_secret_password</prop> </props> <prop key="URL">jdbc:oracle:thin:@my-ora-server:1521:SID</prop> </property> <property name="poolSize"><value>1</value></property> </bean> |