Author: epbernard
Date: 2010-07-30 06:09:48 -0400 (Fri, 30 Jul 2010)
New Revision: 20086
Modified:
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/JBossTSTest.java
Log:
HSEARCH-562 Add JTA test with JBoss TS: Use after_transaction to avoid the connection
closing / delisting issue
Modified:
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/JBossTSTest.java
===================================================================
---
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/JBossTSTest.java 2010-07-30
10:09:16 UTC (rev 20085)
+++
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/JBossTSTest.java 2010-07-30
10:09:48 UTC (rev 20086)
@@ -73,6 +73,8 @@
.addProperty( "hibernate.dialect", H2Dialect.class.getName() )
.addProperty( Environment.HBM2DDL_AUTO, "create-drop" )
.addProperty( Environment.SHOW_SQL, "true" )
+ //I don't pool connections by JTA transaction. Leave the work to Hibernate Core
+ .addProperty( Environment.RELEASE_CONNECTIONS,
ConnectionReleaseMode.AFTER_TRANSACTION.toString() )
.addProperty( "hibernate.search.default.directory_provider",
"org.hibernate.search.store.RAMDirectoryProvider" )
.create();
final HibernatePersistence hp = new HibernatePersistence();
Show replies by date