Atomikos Forum |
|
I am using 3.3.3. The error for the properties below is
"Caused by: com.atomikos.jdbc.AtomikosSQLException: cannot initialize AtomikosDataSourceBean: null at com.atomikos.jdbc.AbstractDataSourceBean.init(Unknown Source)" 1) Has anyone seen this problem before? It seems that init method is not able complete successfully. 2) Do you know why do i have "AtomikosDataSourceBean: null" in the error? 3) Is "port" key really required? Please let me know if you have any information. Thank you, SpringForever <bean id="xaDataSource" class="com.atomikos.jdbc.AtomikosDataSourceBean" init-method="init" destroy-method="close"> <property name="uniqueResourceName"><value>XA12</value></property> <property name="xaDataSourceClassName" value="oracle.jdbc.xa.OracleXADataSource" /> <property name="xaProperties"> <props> <prop key="url">jdbc:oracle:thin:@dbtest:1521:development</prop> <prop key="user">ABC</prop> <prop key="password">ABC</prop> <prop key="port">3306</prop> </props> </property> <property name="poolSize"><value>20</value></property> </bean>
Have you granted the required privileges to the Oracle user ?
See http://www.atomikos.com/Documentation/ConfiguringOracle
Thank you guys for your resonse!
Finally, I got through the configurations. I used the following configuration. (Yet to test the transaction and stuff) <bean id="xaDataSource" class="com.atomikos.jdbc.AtomikosDataSourceBean"> <property name="uniqueResourceName"><value>XA12</value></property> <property name="xaDataSourceClassName" value="oracle.jdbc.xa.client.OracleXADataSource" /> <property name="xaProperties"> <props> <prop key="URL">jdbc:oracle:thin:@dbtest:1521:development</prop> <prop key="user">ABC</prop> <prop key="password">ABC</prop> </props> </property> <property name="poolSize"><value>20</value></property> </bean> |