-->
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: multiple session factories for two different db
PostPosted: Thu Dec 16, 2004 4:57 pm 
Beginner
Beginner

Joined: Mon Dec 08, 2003 12:15 am
Posts: 47
Hello:

I apologize if this topic has already come up in this forum. I did a search and it came back with over 5000 records. So I decided to try this route instead.

We are in the process of migrating some data from a DB2 AS400 environment to Oracle on Linux. What I would like to do is use Hibernate to extract the data from the DB2 instance and save it to the Oracle instance. Obviously this is going to require connections to the two databases simultaneously. Since my usage of Hibernate is limited to only one database instance from the same vendor, I am not sure how to configure two different session factories to accomplish my task.

Thanks in advance,

Juan A.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 16, 2004 6:39 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Just use two different config files, for example.


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.