Allow XA DataSource and ConnFactory pools to be configured via the env
This commit adds support for configuring the XA DataSource and ConnectionFactory pools created by Atomikos and Bitronix via the environment. The property prefixes vary depending on the transaction manager that’s in use. They are: Bitronix: - spring.jta.bitronix.datasource - spring.jta.bitronix.connectionfactory Atomikos: - spring.jta.atomikos.datasource - spring.jta.atomikos.connectionfactory The configuration processor has been updated to ignore javax.jms.XAConnectionFactory and javax.sql.XADataSource as neither of these types can be created via property binding. Closes gh-2027
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2014 the original author or authors.
|
||||
* Copyright 2012-2015 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,6 +25,7 @@ import javax.lang.model.type.TypeMirror;
|
||||
* Filter to excluded elements that don't make sense to process.
|
||||
*
|
||||
* @author Stephane Nicoll
|
||||
* @author Andy Wilkinson
|
||||
* @since 1.2.0
|
||||
*/
|
||||
class TypeExcludeFilter {
|
||||
@@ -32,13 +33,15 @@ class TypeExcludeFilter {
|
||||
private final Set<String> excludes = new HashSet<String>();
|
||||
|
||||
public TypeExcludeFilter() {
|
||||
add("com.zaxxer.hikari.IConnectionCustomizer");
|
||||
add("groovy.text.markup.MarkupTemplateEngine");
|
||||
add("java.io.Writer");
|
||||
add("java.io.PrintWriter");
|
||||
add("java.lang.ClassLoader");
|
||||
add("java.util.concurrent.ThreadFactory");
|
||||
add("javax.jms.XAConnectionFactory");
|
||||
add("javax.sql.DataSource");
|
||||
add("com.zaxxer.hikari.IConnectionCustomizer");
|
||||
add("groovy.text.markup.MarkupTemplateEngine");
|
||||
add("javax.sql.XADataSource");
|
||||
add("org.apache.tomcat.jdbc.pool.PoolConfiguration");
|
||||
add("org.apache.tomcat.jdbc.pool.Validator");
|
||||
add("org.flywaydb.core.api.callback.FlywayCallback");
|
||||
|
||||
Reference in New Issue
Block a user