Skip to content

iundarigun/multidatasources

Repository files navigation

Two dataSources

This repo shows a way to configure manually more than one datasource. In this example, we have a MySql database, with Company tables, and Postgres database, with Employee tables

Docker compose

To run databases in docker-compose, you can run:

docker-compose up -d

JTA

In this main branch code, we are add atomikos to manage the transactional context using JtaTransactionManager, instead of PlatformTransactionManager.

If you want to see a simpler solution with two transaction manager, can checkout the branch simple-transaction-manager

References

About

Repo to set Spring boot, hibernate and Spring Data project with two databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages