This content has been marked as final.
Show 4 replies
-
1. Re: Using multiple DataSources
welle Dec 10, 2010 4:49 AM (in response to sergiu_pienar)1 of 1 people found this helpful> How can I use multiple DS's in a safe manner?
By using XA datasources (Not local-tx)
-
2. Re: Using multiple DataSources
sergiu_pienar Dec 10, 2010 5:32 AM (in response to welle)I did try using XA DS's and i get this : [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: No XADataSourceClass supplied!)
-
3. Re: Using multiple DataSources
welle Dec 10, 2010 5:40 AM (in response to sergiu_pienar)The jdbc driver need to support XA and the *-ds.xml file needs some special setups: Look at the examples in "$JBOSS_HOME/docs/examples/jca".
-
4. Re: Using multiple DataSources
sergiu_pienar Dec 10, 2010 10:21 AM (in response to welle)After looking at the examples , I see that I need to add the <xa-datasource-property name="URL"> but in the DeploymentTemplate that I use to create the DataSource , there is no such property.
Any help ?
Thx.