Skip to content

An JavaSE example of multiples threads sharing a single JTA transaction using Atomikos

License

Notifications You must be signed in to change notification settings

tomdkt/threads-with-transaction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Threads with Transaction

A JavaSE example of multiples threads sharing a single JTA transaction using Atomikos.

There are two simple tests for success and failure.

Basically, this project connects to PostgreSQL and try to update a column of test table. 5 threads are started and each one try to update one row of the table.

In the success test, all columns are flagged with "ok".

The failure test try to flag "fail" but all the last one always fail, rolling back all changes.

About

An JavaSE example of multiples threads sharing a single JTA transaction using Atomikos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%