-->
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: Change DB User Connection for Each Call
PostPosted: Tue Aug 29, 2006 6:52 pm 
Newbie

Joined: Sun Jul 31, 2005 8:49 pm
Posts: 7
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Name and version of the database you are using:

Oracle 10g

Hi,

We are currently using a Spring and Hibernate environment on top of an Oracle 10g database. 10g has many facilities to automatically filter data based on the database user id. We also want to use triggers that automatically provide audit information based on the database user. Therefore, setting up the database pool with a single user, like is most common with hibernate and spring doesn't work for us.

Is there a best practice or a pattern that is out there for either pooling connections for specific users or changing the user/password on the fly?

We are using the C3PO pooling manager.

Certainly there is the method of getting a configuration, setting the properties and then creating another session factory, but the overhead for that appears to be too large.

Any help on this would be greatly appreciated.

Thanks.


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.