Allow graceful shutdown of Atomikos

See gh-11237
This commit is contained in:
nklmish
2017-12-01 11:19:23 +01:00
committed by Stephane Nicoll
parent 2da6675c42
commit 46d94aba4f
3 changed files with 29 additions and 4 deletions

View File

@@ -53,6 +53,7 @@ import org.springframework.util.StringUtils;
* @author Andy Wilkinson
* @author Stephane Nicoll
* @author Kazuki Shimizu
* @author Nakul Mishra
* @since 1.2.0
*/
@Configuration
@@ -72,7 +73,7 @@ class AtomikosJtaConfiguration {
.getIfAvailable();
}
@Bean(initMethod = "init", destroyMethod = "shutdownForce")
@Bean(initMethod = "init", destroyMethod = "shutdownWait")
@ConditionalOnMissingBean(UserTransactionService.class)
public UserTransactionServiceImp userTransactionService(
AtomikosProperties atomikosProperties) {