Jun 29th, 2012, 02:45 AM
Connection to multiple databases without xml configuration
I have a problem and I don't know how to solve it... I have to connect to several databases, and the database to connect to is decided at runtime depending on what the user chooses... I have the connections details stored in a table in my "default" database.
Is there any way to do this? I mean, other than the "old" way of creating a Connection object?
I found: http://forum.springsource.org/showth...-throught-code but I understand that you still need "jdbc/myDataSource" to be defined in a xml file altough you load it programatically...
Tags for this Thread