Atomikos Forum

Example using oraclexa datasource

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
tombbrown Send private email
Friday, September 19, 2008
 
 
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>
Ludovic Orban Send private email
Friday, September 19, 2008
 
 
Hi Tomb,
Is it working for you? I have the same error. Please have a look at the topic "cannot initialize AtomikosDataSourceBean: null". Please let me know if you got the solution for it.
Thank you,
SpringForever
springforever Send private email
Saturday, September 27, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics