Skip to content

Commit

Permalink
Polish "Stop JtaAutoConfiguration from enabling JtaProperties when no…
Browse files Browse the repository at this point in the history
…t used"

Closes spring-projectsgh-15550
  • Loading branch information
wilkinsona committed Dec 21, 2018
1 parent 0b29da1 commit bfd63ab
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,7 @@ public void atomikosConnectionFactoryPoolConfiguration() {
.of("spring.jta.atomikos.connectionfactory.minPoolSize:5",
"spring.jta.atomikos.connectionfactory.maxPoolSize:10")
.applyTo(this.context);
this.context.register(AtomikosJtaConfiguration.class,
PoolConfiguration.class);
this.context.register(AtomikosJtaConfiguration.class, PoolConfiguration.class);
this.context.refresh();
AtomikosConnectionFactoryBean connectionFactory = this.context
.getBean(AtomikosConnectionFactoryBean.class);
Expand All @@ -188,8 +187,7 @@ public void bitronixConnectionFactoryPoolConfiguration() {
.of("spring.jta.bitronix.connectionfactory.minPoolSize:5",
"spring.jta.bitronix.connectionfactory.maxPoolSize:10")
.applyTo(this.context);
this.context.register(BitronixJtaConfiguration.class,
PoolConfiguration.class);
this.context.register(BitronixJtaConfiguration.class, PoolConfiguration.class);
this.context.refresh();
PoolingConnectionFactoryBean connectionFactory = this.context
.getBean(PoolingConnectionFactoryBean.class);
Expand All @@ -204,8 +202,7 @@ public void atomikosDataSourcePoolConfiguration() {
.of("spring.jta.atomikos.datasource.minPoolSize:5",
"spring.jta.atomikos.datasource.maxPoolSize:10")
.applyTo(this.context);
this.context.register(AtomikosJtaConfiguration.class,
PoolConfiguration.class);
this.context.register(AtomikosJtaConfiguration.class, PoolConfiguration.class);
this.context.refresh();
AtomikosDataSourceBean dataSource = this.context
.getBean(AtomikosDataSourceBean.class);
Expand All @@ -220,8 +217,7 @@ public void bitronixDataSourcePoolConfiguration() {
.of("spring.jta.bitronix.datasource.minPoolSize:5",
"spring.jta.bitronix.datasource.maxPoolSize:10")
.applyTo(this.context);
this.context.register(BitronixJtaConfiguration.class,
PoolConfiguration.class);
this.context.register(BitronixJtaConfiguration.class, PoolConfiguration.class);
this.context.refresh();
PoolingDataSourceBean dataSource = this.context
.getBean(PoolingDataSourceBean.class);
Expand Down

0 comments on commit bfd63ab

Please sign in to comment.