Skip to content
Permalink
Browse files
logging when JTA envrt is broken + fixing mvn variable names
  • Loading branch information
rmannibucau committed Jul 23, 2014
1 parent 08d7623 commit 0ae8e5289b8d2d0682da72491e7b5bfa09aa18ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
@@ -16,7 +16,12 @@
*/
package org.apache.batchee.extras.transaction.integration;

import java.util.logging.Level;
import java.util.logging.Logger;

public final class Synchronizations {
private static final Logger LOGGER = Logger.getLogger(Synchronizations.class.getName());

public static final SynchronizationService DELEGATE;
public static final boolean ACTIVE;
static {
@@ -26,6 +31,7 @@ public final class Synchronizations {
Synchronizations.class.getClassLoader().loadClass("javax.transaction.UserTransaction");
service = new JTASynchronizationService("java:comp/TransactionSynchronizationRegistry");
} catch (final Throwable e) { // NoClassDefFoundError or ClassNotFoundException
LOGGER.log(Level.SEVERE, "UserTransaction or TransactionSynchronizationRegistry not found, Transactional* components will not work", e);
active = false;
service = new NoopSynchronizationService();
}
@@ -398,15 +398,15 @@
</goals>
<configuration>
<tasks>
<unzip src="${tck.dir}/jsr352-tck-impl-src.jar" dest="${build.directory}/tck-test-src"/>
<unzip src="${tck.dir}/jsr352-tck-SPI.jar" dest="${build.testOutputDirectory}"/>
<unzip src="${tck.dir}/jsr352-tck-impl.jar" dest="${build.testOutputDirectory}">
<unzip src="${tck.dir}/jsr352-tck-impl-src.jar" dest="${project.build.directory}/tck-test-src"/>
<unzip src="${tck.dir}/jsr352-tck-SPI.jar" dest="${project.build.testOutputDirectory}"/>
<unzip src="${tck.dir}/jsr352-tck-impl.jar" dest="${project.build.testOutputDirectory}">
<patternset>
<include name="META-INF/**"/>
</patternset>
</unzip>
</tasks>
<outputDirectory>${build.directory}/tck-test-src</outputDirectory>
<outputDirectory>${project.build.directory}/tck-test-src</outputDirectory>
</configuration>
</execution>
</executions>
@@ -425,7 +425,7 @@
</goals>
<configuration>
<sources>
<source>${build.directory}/tck-test-src</source>
<source>${project.build.directory}/tck-test-src</source>
</sources>
</configuration>
</execution>

0 comments on commit 0ae8e52

Please sign in to comment.