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.  [ 2 posts ] 
Author Message
 Post subject: Using nHibernate with two connections.
PostPosted: Tue Nov 08, 2005 11:37 am 
Regular
Regular

Joined: Fri Nov 04, 2005 12:37 pm
Posts: 81
I need to write a piece of code where i need to port databetween two sql databases hosted on different sql servers. I was wondering what was the easiest way of getting nhibernate to work on 2 connections?

I currently configure nhibernate connection through my web.config file, can i still do this using 2 connections?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 09, 2005 6:36 am 
Beginner
Beginner

Joined: Mon Oct 03, 2005 4:59 am
Posts: 26
Location: Cambridge, UK
This is conjecture, but I'd think you might try using two SessionFactory objects. I expect you'd have to set their connection strings programmatically, not from the web.config. See http://nhibernate.sourceforge.net/forum/viewtopic.php?t=1241 for that part.


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

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.