Spring’s Dynamic DataSource Routing

Dynamic DataSource routing is introduced in Spring 2.0.1 version. Using this feature of Spring we can select the DataSource dynamically at runtime based upon a lookup key. Through this we can determine the DataSource based on some attribute of the current user’s context.

Please refer this post by Mark Fisher on Spring Team Blog for more details…