Quantcast
Channel: Spring Community Forums - Data
Viewing all articles
Browse latest Browse all 297

Adding new datasources in runtime

$
0
0
Hi,

At application starting I have only one data source bean (Hibernate). From this bean I can get an arbitrary number of a new database settings. Each from this databases has the same schema, but different data. I would like use the same entities, and maybe the same dao, and create new data sources for each database instance at runtime. Is that possible? How?

I've seen this: http://blog.springsource.com/2007/01...ource-routing/

But I still do not understand. Please, help.

Viewing all articles
Browse latest Browse all 297

Trending Articles