Connect 2 Databases or 2 Datasource with one microservice:
3 major things we need to take care of as:
- Define the data sources we want to interact
- Entity Manager we need to define along with some properties.
- Transactional Manger we need to define for all types of queries.
Note - This is just a demo project. This can be used for educational purposes, can't be used for business purpose.
If you have some query, feel free to connect with me here -- Ranjan Kumar Mandal