I have a task to create multiple session factories for different Data Sources. One data source will be used for read requests and another for read-write requests.
Each API of our Database Service(a wrapper over DAO) is executed as a transaction. Single API may call multiple DAO functions having different Read/Write property.
What is the best possible way to perform this task?