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.
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.