Announcement Announcement Module
Collapse
No announcement yet.
Can Spring's RoutingDataSource be extended to hook up different databases at runtime? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can Spring's RoutingDataSource be extended to hook up different databases at runtime?

    Hi,
    I gone through how to hook up different databases based on some key using RoutingDataSource. But can i use/extend RoutingDataSource to connect to a databases for which the jdbc properties given by the user?

    My scenario is:
    The user will be given a form to enter jdbc properties for a database and i will store them in a master database. And i will display them in dropdown and when the user is selected a perticular database i should connect to that database. I don't have dataSource configurations for all those databases in spring applicationContext files.

    Right now i am using IBatis for DataAccess.

    Can somebody throw light on this.

    Thanks in advance.
Working...
X