This content has been marked as final.
Show 4 replies
-
1. Re: Jboss 5.0.1 & ha-local-tx-datasource
vickyk Mar 9, 2009 3:22 PM (in response to mcrandal)Yes, there is an issue of ha datasource getting deployed, I need to dig more here.
I will look over this during the weekend. -
2. Re: Jboss 5.0.1 & ha-local-tx-datasource
mcrandal Mar 10, 2009 8:53 AM (in response to mcrandal)Have been looking a bit more at this and seems that, according to the jboss-ds_1_5.dtd
, the local-tx-datasource type of datasource takes a url-delimiter. And when I deploy with<datasources> <local-tx-datasource> <jndi-name>jdbc/BOB-DS</jndi-name> <connection-url>jdbc:oracle:thin:@db1:1521:db1|jdbc:oracle:thin:@db2:1521:db2</connection-url> <url-delimiter>|</url-delimiter> <driver-class>oracle.jdbc.driver.OracleDriver</driver-class> <user-name>USERNAME</user-name> <password>PASSWORD</password> <min-pool-size>2</min-pool-size> <max-pool-size>20</max-pool-size> <check-valid-connection-sql>select 1 from dual</check-valid-connection-sql> <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name> <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleExceptionSorter</exception-sorter-class-name> </local-tx-datasource> </datasources>
All seems fine. Though I have NOT tested the failover capability. -
3. Re: Jboss 5.0.1 & ha-local-tx-datasource
msaheb May 5, 2009 1:19 PM (in response to mcrandal)Hi
According to the last message posted here, does it mean that to define failover capabilities, ha-XXXX-datasource is not needed in JBoss 5? -
4. Re: Jboss 5.0.1 & ha-local-tx-datasource
vickyk May 7, 2009 12:34 AM (in response to mcrandal)"maliksaheb" wrote:
Hi
According to the last message posted here, does it mean that to define failover capabilities, ha-XXXX-datasource is not needed in JBoss 5?
Yes, check the corresponding test case related -ds.xml configuration files here
https://anonsvn.jboss.org/repos/jbossas/trunk/testsuite/src/resources/jca/ha/
Here is the corresponding -ds.xml files from older Jboss configuration
http://anonsvn.jboss.org/repos/jbossas/branches/JBPAPP_4_2/testsuite/src/resources/jca/ha
You will notice that there is change from ha-local-tx-datasource to local-tx-datasource in the configuration.