Author: epbernard
Date: 2010-07-30 06:12:26 -0400 (Fri, 30 Jul 2010)
New Revision: 20090
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/infra/JBossTADataSourceBuilder.java
Log:
HSEARCH-562 Add JTA test with JBoss TS: make use of non persistent tx recovery store
this avoid the unnecessary creation of the recovery directory
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:11:48 UTC (rev 20089)
+++
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/JBossTSTest.java 2010-07-30
10:12:26 UTC (rev 20090)
@@ -95,7 +95,6 @@
public static void tearDown() {
factory.close();
FileHelper.delete( tempDirectory );
- FileHelper.delete( new File("./PutObjectStoreDirHere") );
}
@Test
Modified:
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/infra/JBossTADataSourceBuilder.java
===================================================================
---
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/infra/JBossTADataSourceBuilder.java 2010-07-30
10:11:48 UTC (rev 20089)
+++
search/trunk/hibernate-search-integrationtest/src/test/java/org/hibernate/search/test/integration/jbossjta/infra/JBossTADataSourceBuilder.java 2010-07-30
10:12:26 UTC (rev 20090)
@@ -4,7 +4,9 @@
import javax.sql.DataSource;
import javax.sql.XADataSource;
+import com.arjuna.ats.arjuna.common.arjPropertyManager;
import com.arjuna.ats.arjuna.coordinator.TxControl;
+import com.arjuna.ats.internal.arjuna.objectstore.VolatileStore;
import com.arjuna.ats.jdbc.TransactionalDriver;
public class JBossTADataSourceBuilder {
@@ -35,6 +37,7 @@
}
public DataSource createDataSource() throws SQLException {
+ arjPropertyManager.getCoordinatorEnvironmentBean().setActionStore(
VolatileStore.class.getName() );
TxControl.setDefaultTimeout(timeout);
DataSourceProvider.initialize( xaDataSource );
DataSourceProvider dsProvider = new DataSourceProvider();
Show replies by date