You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2014/04/06 21:06:14 UTC
[jira] [Updated] (TOMEE-1169) better support of XaDataSource
[ https://issues.apache.org/jira/browse/TOMEE-1169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Romain Manni-Bucau updated TOMEE-1169:
--------------------------------------
Description:
sample config
{code}
setProperty("db1XA", "new://Resource?type=DataSource");
setProperty("db1XA.XaDataSource", "db1XAUnderlying");
setProperty("db1XA.DataSourceCreator", "dbcp-alternative");
setProperty("db1XA.SkipImplicitAttributes", "true");
setProperty("db2XA", "new://Resource?type=DataSource");
setProperty("db2XA.XaDataSource", "db2XAUnderlying");
setProperty("db2XA.DataSourceCreator", "dbcp-alternative");
setProperty("db2XA.SkipImplicitAttributes", "true");
setProperty("db1XAUnderlying", "new://Resource?type=javax.sql.XADataSource&class-name=" + org.hsqldb.jdbc.pool.JDBCXADataSource.class.getName());
setProperty("db1XAUnderlying.user", "SA");
setProperty("db1XAUnderlying.password", "");
setProperty("db1XAUnderlying.url", "jdbc:hsqldb:mem:db1");
setProperty("db1XAUnderlying.SkipImplicitAttributes", "true");
setProperty("db2XAUnderlying", "new://Resource?type=javax.sql.XADataSource&class-name=org.hsqldb.jdbc.pool.JDBCXADataSource");
setProperty("db2XAUnderlying.user", "SA");
setProperty("db2XAUnderlying.password", "");
setProperty("db2XAUnderlying.url", "jdbc:hsqldb:mem:db2");
setProperty("db2XAUnderlying.SkipImplicitAttributes", "true");
{code}
was:
sample config
{code}
setProperty("db1XA", "new://Resource?type=DataSource");
setProperty("db1XA.XaDataSource", "db1XAUnderlying");
setProperty("db1XA.DataSourceCreator", "dbcp-alternative");
setProperty("db1XA.SkipImplicitAttributes", "true");
setProperty("db2XA", "new://Resource?type=DataSource");
setProperty("db2XA.XaDataSource", "db2XAUnderlying");
setProperty("db2XA.DataSourceCreator", "dbcp-alternative");
setProperty("db2XA.SkipImplicitAttributes", "true");
setProperty("db1XANonJta", "new://Resource?type=DataSource");
setProperty("db1XANonJta.JdbcUrl", "jdbc:hsqldb:mem:db1");
setProperty("db1XANonJta.JtaManaged", "false");
setProperty("db2XANonJta", "new://Resource?type=DataSource");
setProperty("db2XANonJta.JdbcUrl", "jdbc:hsqldb:mem:db2");
setProperty("db2XANonJta.JtaManaged", "false");
setProperty("db1XAUnderlying", "new://Resource?type=javax.sql.XADataSource&class-name=" + org.hsqldb.jdbc.pool.JDBCXADataSource.class.getName());
setProperty("db1XAUnderlying.user", "SA");
setProperty("db1XAUnderlying.password", "");
setProperty("db1XAUnderlying.url", "jdbc:hsqldb:mem:db1");
setProperty("db1XAUnderlying.SkipImplicitAttributes", "true");
setProperty("db2XAUnderlying", "new://Resource?type=javax.sql.XADataSource&class-name=org.hsqldb.jdbc.pool.JDBCXADataSource");
setProperty("db2XAUnderlying.user", "SA");
setProperty("db2XAUnderlying.password", "");
setProperty("db2XAUnderlying.url", "jdbc:hsqldb:mem:db2");
setProperty("db2XAUnderlying.SkipImplicitAttributes", "true");
{code}
> better support of XaDataSource
> ------------------------------
>
> Key: TOMEE-1169
> URL: https://issues.apache.org/jira/browse/TOMEE-1169
> Project: TomEE
> Issue Type: Bug
> Reporter: Romain Manni-Bucau
> Assignee: Romain Manni-Bucau
> Fix For: 1.6.1
>
>
> sample config
> {code}
> setProperty("db1XA", "new://Resource?type=DataSource");
> setProperty("db1XA.XaDataSource", "db1XAUnderlying");
> setProperty("db1XA.DataSourceCreator", "dbcp-alternative");
> setProperty("db1XA.SkipImplicitAttributes", "true");
> setProperty("db2XA", "new://Resource?type=DataSource");
> setProperty("db2XA.XaDataSource", "db2XAUnderlying");
> setProperty("db2XA.DataSourceCreator", "dbcp-alternative");
> setProperty("db2XA.SkipImplicitAttributes", "true");
> setProperty("db1XAUnderlying", "new://Resource?type=javax.sql.XADataSource&class-name=" + org.hsqldb.jdbc.pool.JDBCXADataSource.class.getName());
> setProperty("db1XAUnderlying.user", "SA");
> setProperty("db1XAUnderlying.password", "");
> setProperty("db1XAUnderlying.url", "jdbc:hsqldb:mem:db1");
> setProperty("db1XAUnderlying.SkipImplicitAttributes", "true");
> setProperty("db2XAUnderlying", "new://Resource?type=javax.sql.XADataSource&class-name=org.hsqldb.jdbc.pool.JDBCXADataSource");
> setProperty("db2XAUnderlying.user", "SA");
> setProperty("db2XAUnderlying.password", "");
> setProperty("db2XAUnderlying.url", "jdbc:hsqldb:mem:db2");
> setProperty("db2XAUnderlying.SkipImplicitAttributes", "true");
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)