we have this code where the same service method will call different daos each using a different datasource (and different JdbcTemplates). We would like to use @Transactional annotation, but as far as I know, this annotation is always linked to a specific TransactionManager (and thus, to a specific DataSource).
So, my question is, is there a way to choose dynamically which DataSource (or TransactionManager) using when calling a @Transactional method so I can reuse that method to attack different databases?