-->
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: What's the best way to deal with user-specified logins?
PostPosted: Mon Feb 23, 2009 9:35 pm 
Newbie

Joined: Mon Feb 23, 2009 9:31 pm
Posts: 1
I have the unfortunate task of having to deal with a customer that requires the web application I'm building to connect to and interact with the database with the oracle credentials (login/password) the user provides. (due to auditing requirements)

I'm trying to figure out how to benefit from connection pooling but implement this requirement.

So I guess I'm trying to figure out how to use connection pooling (maybe with a generic oracle account), but perform selects/inserts/updates/deletes with user specified credentials, on the fly.

Can hibernate support this, and if so, what section of hibernate documentation can I read up on?

Thanks a lot,
-John


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 24, 2009 5:17 am 
Expert
Expert

Joined: Fri Jan 30, 2009 1:47 am
Posts: 292
Location: Bangalore, India
May be you can use SessionFactory.openSession(java.sql.Connection).

You can use the JDBC to get the connection object using the usual DriverManager.getConnection() and then use this connection to open a hibernate session.

_________________
Regards,
Litty Preeth


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.