-->
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: One app; 2 DBs, 2 Sessions??
PostPosted: Fri Jan 20, 2006 12:49 pm 
Newbie

Joined: Fri Jan 20, 2006 12:39 pm
Posts: 1
Location: So Cal
I'm using Hibernate 3.1 to develop some utilities to work with our Oracle 9 db. We run two databases, a parallel and production version.

Most all of my queries are links on a webpage to a report or lookup. The user has the choice between the parallel or production version.

I have tried creating two configuration files, instantiating both, and setting the local thread to the one desired (passed by parameter). But if I choose DB 1 immediately followed by DB 2, DB 2 immediately creates errors. If I wait till DB 1 is complete, it does not.

I can't find any information about juggling sessions in the tutorial, docs, or in the Hibernate in Action book.

Do I need to find a way to spawn threads for each request so it doesn't rely on a shared session?

I'm using Struts redirect/action to perform the actual HQL.

Thanks. If I screwed up and didn't ask for help properly I do apologize.

Mondo


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.