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: How to get hibernate sessions or connections dynamically
PostPosted: Wed Oct 20, 2004 1:56 pm 
Newbie

Joined: Wed Oct 20, 2004 6:43 am
Posts: 1
Hi Friends,

Hibernate version:
Hibernate 2.1.4

Name and version of the database you are using:
Informix Dynamic Server 7.4X and Informix Standard Engine 7.x

Problem

My application needs to connect to any of the 20 database severs in a single program by switching connections. Among these 20 database severs 19 are Informix SE database severs and remaining 1 is Informix Dynamic Server. The 19 DB Servers are having a database with same database schema and the Central 1 is having a database with a different DB Schema.

I am using two different sar files (1 for the 19 stations and 1 for the central). I am updating all the tables locally using the Hibernate layer.
How will I connect to other stations dynamically which ever database i need to update on the runtime.

How will i implement two phase commit protocol when updation to 3 different databases with in a single transaction. One issue is that Informix Standard Engine doesn't support ditribute transaction (XA).

Please give me a way to solve this problem.

Thanx in advance.

Peter


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.