Hi All,
I have an existing application with one database and all the DAOs extends HibernateDaoSupport. So, all the operations are via getHibernateTemplate().
However, I now want to introduce another database to the application. I understand the configuration part of have multiple datasources and then having multiple beans for org.springframework.orm.hibernate3.LocalSessionFactoryBean.
Now, I am struggling to understand that when I invoke getHibernateTemplate() - which sessionFactory will be returned. How can I determine/make sure that I get the desired sessionFactory.
Thanks,
Raj
|