Skip to content

kklepacz/spring-async-transaction-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Demo of ignored @Transactional on method with @Async.

Transaction is not active in AsyncListener#handle method.

Change

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>2.1.7.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>

to

	<parent>
		<groupId>org.springframework.boot</groupId>
		<artifactId>spring-boot-starter-parent</artifactId>
		<version>1.5.22.RELEASE</version>
		<relativePath/> <!-- lookup parent from repository -->
	</parent>

Now, transaction is active for some reason in the same method.

About

spring-async-transaction-demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages