-
1. Re: oracle XA datasource error
rareddy Sep 30, 2013 8:41 AM (in response to vivedha)What I can check online with other sources the example template given is correct. Can you post your -ds.xml contents here?
-
2. Re: oracle XA datasource error
vivedha Oct 11, 2013 5:34 AM (in response to rareddy)Sorry Ramesh for the late reply.
The following is the XA oracle data source that I have used
<datasources>
<xa-datasource jndi-name="extmatviewDS" pool-name="OracleDS" enabled="true" use-java-context="true" use-ccm="true">
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-datasource-property name="URL">jdbc:oracle:thin:aaaaaa:11111:bbbbbb</xa-datasource-property>
<driver>ojdbc6.jar</driver>
<!--
<new-connection-sql>select * from dual</new-connection-sql>
<transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation>
-->
<xa-pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>20</max-pool-size>
<is-same-rm-override>true</is-same-rm-override>
<prefill>false</prefill>
<use-strict-min>false</use-strict-min>
<flush-strategy>FailingConnectionOnly</flush-strategy>
<no-tx-separate-pools/>
</xa-pool>
<security>
<user-name>xxxxx</user-name>
<password>yyyyyyy</password>
<!--
<security-domain>mysecurity-realm</security-domain>
-->
</security>
<!--
<validation>
<check-valid-connection-sql>select * from dual</check-valid-connection-sql>
</validation>
-->
</xa-datasource>
</datasources>
-
3. Re: Re: oracle XA datasource error
shawkins Oct 16, 2013 8:19 AM (in response to vivedha)I think that your definition looks good. Is your URL of the format - jdbc:oracle:thin:@<IP of database system>:1521:SID
-
4. Re: oracle XA datasource error
masilamani Oct 18, 2013 11:31 PM (in response to shawkins)The JDBC URL for Oracle data source is incorrect and format is shown below.
For using servicename: jdbc:oracle:thin:@<hostname>:<port#>/servicename
For using SID: jdbc:oracle:thin:@<hostname>:<port#>:sid