[jboss-cvs] JBossAS SVN: r109705 - in projects/jboss-jca/trunk/common/src/test: resources/ds/unit and 1 other directory.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Dec 3 10:42:05 EST 2010
Author: maeste
Date: 2010-12-03 10:42:05 -0500 (Fri, 03 Dec 2010)
New Revision: 109705
Added:
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-wait-millis-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/background-validation-minutes-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/blocking-timeout-millis-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/exception-sorter-class-name-missing-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/idle-timeout-minutes-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-connection-url-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-driver-class-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-jndi-name-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-pool-name-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/prepared-statement-cache-size-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/query-timeout-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/stale-connection-checker-class-name-missing-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/use-try-lock-negative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/validation-checker-class-name-missing-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xa-resource-timeout-negative-ds.xml
Removed:
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/BlockingTimeoutMillisNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ExceptionSorterClassNameMissing-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/IdleTimeoutMinutesNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/StaleConnectionCheckerClassNameMissing-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ValidationCheckerClassNameMissing-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryWaitMillisNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/backgroundValidationMinutesNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/noconnectionurl-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nodriver-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nojndiname-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nopool-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/preparedStatementCacheSizeNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/queryTimeoutNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/useTryLockNegative-ds.xml
projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xaresourcetimeoutNegative-ds.xml
Modified:
projects/jboss-jca/trunk/common/src/test/java/org/jboss/jca/common/metadata/ds/DsParserForValidatorExceptionTestCase.java
Log:
JBJCA-478 cleanup test suite for metadata validation for datasources
Modified: projects/jboss-jca/trunk/common/src/test/java/org/jboss/jca/common/metadata/ds/DsParserForValidatorExceptionTestCase.java
===================================================================
--- projects/jboss-jca/trunk/common/src/test/java/org/jboss/jca/common/metadata/ds/DsParserForValidatorExceptionTestCase.java 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/java/org/jboss/jca/common/metadata/ds/DsParserForValidatorExceptionTestCase.java 2010-12-03 15:42:05 UTC (rev 109705)
@@ -68,7 +68,8 @@
{
//given
- File xmlFile = new File(Thread.currentThread().getContextClassLoader().getResource("ds/unit/nodriver-ds.xml")
+ File xmlFile = new File(Thread.currentThread().getContextClassLoader()
+ .getResource("ds/unit/no-driver-class-ds.xml")
.toURI());
//when
doParse(xmlFile);
@@ -88,7 +89,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/noconnectionurl-ds.xml").toURI());
+ .getResource("ds/unit/no-connection-url-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -106,7 +107,8 @@
{
//given
- File xmlFile = new File(Thread.currentThread().getContextClassLoader().getResource("ds/unit/nojndiname-ds.xml")
+ File xmlFile = new File(Thread.currentThread().getContextClassLoader()
+ .getResource("ds/unit/no-jndi-name-ds.xml")
.toURI());
//when
doParse(xmlFile);
@@ -125,7 +127,8 @@
{
//given
- File xmlFile = new File(Thread.currentThread().getContextClassLoader().getResource("ds/unit/nopool-ds.xml")
+ File xmlFile = new File(Thread.currentThread().getContextClassLoader()
+ .getResource("ds/unit/no-pool-name-ds.xml")
.toURI());
//when
doParse(xmlFile);
@@ -163,7 +166,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/allocationRetryNegative-ds.xml").toURI());
+ .getResource("ds/unit/allocation-retry-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -182,7 +185,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/allocationRetryWaitMillisNegative-ds.xml").toURI());
+ .getResource("ds/unit/allocation-retry-wait-millis-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -201,7 +204,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/BlockingTimeoutMillisNegative-ds.xml").toURI());
+ .getResource("ds/unit/blocking-timeout-millis-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -220,7 +223,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/IdleTimeoutMinutesNegative-ds.xml").toURI());
+ .getResource("ds/unit/idle-timeout-minutes-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -239,7 +242,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/noconnectionurl-ds.xml").toURI());
+ .getResource("ds/unit/no-connection-url-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -258,7 +261,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/queryTimeoutNegative-ds.xml").toURI());
+ .getResource("ds/unit/query-timeout-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -277,7 +280,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/useTryLockNegative-ds.xml").toURI());
+ .getResource("ds/unit/use-try-lock-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -296,7 +299,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/xaresourcetimeoutNegative-ds.xml").toURI());
+ .getResource("ds/unit/xa-resource-timeout-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -315,7 +318,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/preparedStatementCacheSizeNegative-ds.xml").toURI());
+ .getResource("ds/unit/prepared-statement-cache-size-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -334,7 +337,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/backgroundValidationMinutesNegative-ds.xml").toURI());
+ .getResource("ds/unit/background-validation-minutes-negative-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -353,7 +356,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/ExceptionSorterClassNameMissing-ds.xml").toURI());
+ .getResource("ds/unit/exception-sorter-class-name-missing-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -372,7 +375,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/StaleConnectionCheckerClassNameMissing-ds.xml").toURI());
+ .getResource("ds/unit/stale-connection-checker-class-name-missing-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
@@ -391,7 +394,7 @@
//given
File xmlFile = new File(Thread.currentThread().getContextClassLoader()
- .getResource("ds/unit/ValidationCheckerClassNameMissing-ds.xml").toURI());
+ .getResource("ds/unit/validation-checker-class-name-missing-ds.xml").toURI());
//when
doParse(xmlFile);
//then throw ValidateException
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/BlockingTimeoutMillisNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/BlockingTimeoutMillisNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/BlockingTimeoutMillisNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <blocking-timeout-millis>-1</blocking-timeout-millis>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ExceptionSorterClassNameMissing-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ExceptionSorterClassNameMissing-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ExceptionSorterClassNameMissing-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <exception-sorter class-name=""></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/IdleTimeoutMinutesNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/IdleTimeoutMinutesNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/IdleTimeoutMinutesNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>-1</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/StaleConnectionCheckerClassNameMissing-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/StaleConnectionCheckerClassNameMissing-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/StaleConnectionCheckerClassNameMissing-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <stale-connection-checker class-name=""></stale-connection-checker>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ValidationCheckerClassNameMissing-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ValidationCheckerClassNameMissing-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/ValidationCheckerClassNameMissing-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <valid-connection-checker class-name=""></valid-connection-checker>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <allocation-retry>-1</allocation-retry>
+ </time-out>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-wait-millis-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-wait-millis-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocation-retry-wait-millis-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <allocation-retry-wait-millis>-1</allocation-retry-wait-millis>
+ </time-out>
+ </datasource>
+</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <allocation-retry>-1</allocation-retry>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryWaitMillisNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryWaitMillisNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/allocationRetryWaitMillisNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <allocation-retry-wait-millis>-1</allocation-retry-wait-millis>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/background-validation-minutes-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/background-validation-minutes-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/background-validation-minutes-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <validation>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <background-validation-minutes>-1</background-validation-minutes>
+ </validation>
+ </datasource>
+</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/backgroundValidationMinutesNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/backgroundValidationMinutesNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/backgroundValidationMinutesNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <background-validation-minutes>-1</background-validation-minutes>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/blocking-timeout-millis-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/blocking-timeout-millis-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/blocking-timeout-millis-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <blocking-timeout-millis>-1</blocking-timeout-millis>
+ </time-out>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/exception-sorter-class-name-missing-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/exception-sorter-class-name-missing-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/exception-sorter-class-name-missing-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <validation>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <exception-sorter class-name=""></exception-sorter>
+ </validation>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/idle-timeout-minutes-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/idle-timeout-minutes-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/idle-timeout-minutes-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <idle-timeout-minutes>-1</idle-timeout-minutes>
+ </time-out>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-connection-url-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-connection-url-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-connection-url-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <!-- ******************************************************************* -->
+ <!-- MISS OF connection-url FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ******************************************************************* -->
+ <!-- The driver class -->
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-driver-class-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-driver-class-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-driver-class-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <!-- ******************************************************************* -->
+ <!-- MISS OF driver-class FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ******************************************************************* -->
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-jndi-name-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-jndi-name-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-jndi-name-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <!-- ******************************************************************* -->
+ <!-- MISS OF jndi-name ATTRIBUTE IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ******************************************************************* -->
+ <datasource pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <!-- The driver class -->
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-pool-name-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-pool-name-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/no-pool-name-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <!-- ******************************************************************* -->
+ <!-- MISS OF pool-name ATTRIBUTE IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ******************************************************************* -->
+ <datasource jndi-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <!-- The driver class -->
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ </datasource>
+</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/noconnectionurl-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/noconnectionurl-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/noconnectionurl-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nodriver-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nodriver-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nodriver-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nojndiname-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nojndiname-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nojndiname-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nopool-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nopool-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/nopool-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/prepared-statement-cache-size-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/prepared-statement-cache-size-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/prepared-statement-cache-size-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <statement>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <prepared-statement-cache-size>-32</prepared-statement-cache-size>
+ </statement>
+ </datasource>
+</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/preparedStatementCacheSizeNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/preparedStatementCacheSizeNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/preparedStatementCacheSizeNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <idle-timeout-minutes>0</idle-timeout-minutes>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>-32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/query-timeout-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/query-timeout-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/query-timeout-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <query-timeout>-1</query-timeout>
+ </time-out>
+ </datasource>
+</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/queryTimeoutNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/queryTimeoutNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/queryTimeoutNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <query-timeout>-1</query-timeout>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/stale-connection-checker-class-name-missing-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/stale-connection-checker-class-name-missing-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/stale-connection-checker-class-name-missing-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <validation>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <stale-connection-checker class-name=""></stale-connection-checker>
+ </validation>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/use-try-lock-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/use-try-lock-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/use-try-lock-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <use-try-lock>-1</use-try-lock>
+ </time-out>
+ </datasource>
+</datasources>
\ No newline at end of file
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/useTryLockNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/useTryLockNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/useTryLockNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- The Hypersonic embedded database JCA connection factory config -->
-<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
-<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
- <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
- <!-- The driver class -->
- <driver-class>org.hsqldb.jdbcDriver</driver-class>
- <pool>
- <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
- <min-pool-size>5</min-pool-size>
- <!-- The maximum connections in a pool/sub-pool -->
- <max-pool-size>20</max-pool-size>
- <!-- The login and password -->
- </pool>
- <security>
- <user-name>sa</user-name>
- <password></password>
- </security>
- <!-- For server mode db, allowing other processes to use hsqldb over tcp. This requires the org.jboss.jdbc.HypersonicDatabase
- mbean. <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url> -->
- <!-- For totally in-memory db, not saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown <connection-url>jdbc:hsqldb:.</connection-url> -->
- <!-- For in-process persistent db, saved when jboss stops. The org.jboss.jdbc.HypersonicDatabase mbean is required for
- proper db shutdown -->
- <time-out>
- <!-- The time before an unused connection is destroyed -->
- <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
- <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
- <use-try-lock>-1</use-try-lock>
- </time-out>
- <statement>
- <!-- Whether to check all statements are closed when the connection is returned to the pool, this is a debugging feature
- that should be turned off in production -->
- <track-statements>true</track-statements>
- <!-- HSQL DB benefits from prepared statement caching -->
- <prepared-statement-cache-size>32</prepared-statement-cache-size>
- </statement>
- <validation>
- <!-- example of how to specify a class that determines a connection is valid before it is handed out from the pool -->
- <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.vendor.DummyValidConnectionChecker"></valid-connection-checker>
- <!-- this will be run before a managed connection is removed from the pool for use by a client -->
- <check-valid-connection-sql>select * from something</check-valid-connection-sql>
- <!--example of how to specify class that determines if exception means connection should be destroyed -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.DummyExceptionSorter"></exception-sorter>
- </validation>
- </datasource>
-</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/validation-checker-class-name-missing-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/validation-checker-class-name-missing-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/validation-checker-class-name-missing-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- The Hypersonic embedded database JCA connection factory config -->
+<!-- See http://www.jboss.org/community/wiki/Multiple1PC for information about datasource -->
+<!-- $Id: hsqldb-ds.xml 97536 2009-12-08 14:05:07Z jesper.pedersen $ -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <datasource jndi-name="DefaultDS" pool-name="DefaultDS">
+ <connection-url>jdbc:hsqldb:${jboss.server.data.dir}${/}hypersonic${/}localDB</connection-url>
+ <driver-class>org.hsqldb.jdbcDriver</driver-class>
+ <validation>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <valid-connection-checker class-name=""></valid-connection-checker>
+ </validation>
+ </datasource>
+</datasources>
\ No newline at end of file
Added: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xa-resource-timeout-negative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xa-resource-timeout-negative-ds.xml (rev 0)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xa-resource-timeout-negative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ===================================================================== -->
+<!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml -->
+<!-- ===================================================================== -->
+<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
+ <xa-datasource jndi-name="XAOracleDS" pool-name="XAOracleDS">
+ <xa-datasource-property name="URL">jdbc:oracle:oci8:@tc</xa-datasource-property>
+ <xa-datasource-property name="User">scott</xa-datasource-property>
+ <xa-datasource-property name="Password">tiger</xa-datasource-property>
+ <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
+ <time-out>
+ <!-- ********************************************** -->
+ <!-- THIS FIELD IS CAUSING THE FAIL OF RELATED TEST -->
+ <!-- ********************************************** -->
+ <xa-resource-timeout>-1</xa-resource-timeout>
+ </time-out>
+ </xa-datasource>
+</datasources>
Deleted: projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xaresourcetimeoutNegative-ds.xml
===================================================================
--- projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xaresourcetimeoutNegative-ds.xml 2010-12-03 15:36:13 UTC (rev 109704)
+++ projects/jboss-jca/trunk/common/src/test/resources/ds/unit/xaresourcetimeoutNegative-ds.xml 2010-12-03 15:42:05 UTC (rev 109705)
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!-- ===================================================================== -->
-<!-- ATTENTION: DO NOT FORGET TO SET Pad=true IN transaction-service.xml -->
-<!-- ===================================================================== -->
-<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:noNamespaceSchemaLocation="http://www.jboss.org/jee/schema/ironjacamar/datasources_1_0.xsd">
- <xa-datasource jndi-name="XAOracleDS" pool-name="XAOracleDS">
- <xa-datasource-property name="URL">jdbc:oracle:oci8:@tc</xa-datasource-property>
- <xa-datasource-property name="User">scott</xa-datasource-property>
- <xa-datasource-property name="Password">tiger</xa-datasource-property>
- <xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
- <xa-pool>
- <!-- uncomment to enable interleaving <interleaving/> -->
- <is-same-rm-override>false</is-same-rm-override>
- <no-tx-separate-pools />
- </xa-pool>
- <time-out>
- <xa-resource-timeout>-1</xa-resource-timeout>
- </time-out>
- <validation>
- <!-- Uses the pingDatabase method to check a connection is still valid before handing it out from the pool -->
- <!--valid-connection-checker-class-name>org.jboss.jca.adapters.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name -->
- <!-- sql to call on an existing pooled connection when it is obtained from pool - the OracleValidConnectionChecker
- is prefered <check-valid-connection-sql>some arbitrary sql</check-valid-connection-sql> -->
- <!-- Checks the Oracle error codes and messages for fatal errors -->
- <exception-sorter class-name="org.jboss.jca.adapters.jdbc.vendor.OracleExceptionSorter"></exception-sorter>
- </validation>
- </xa-datasource>
-</datasources>
More information about the jboss-cvs-commits
mailing list