-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Multiple Database Configuration with HibernateDaoSupport
PostPosted: Fri Sep 19, 2008 3:28 am 
Newbie

Joined: Fri Sep 19, 2008 3:17 am
Posts: 5
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.