-->
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.  [ 4 posts ] 
Author Message
 Post subject: OracleOCIConnectionPool Proxy Authentication
PostPosted: Thu Mar 24, 2005 1:12 am 
Newbie

Joined: Wed Mar 23, 2005 10:03 pm
Posts: 1
Hello,

I am trying to evaluate if hibernate will work with a DB security requirements on our project. We use Oracle DB and WLS. Our application is required to make database user authentication on all queries/updates. The only way we can do this and support connection pooling is by using Oracle’s OracleOCIConnectionPool DataSource. OracleOCIConnectionPool Datasource can return a connection proxy that is bound to specific user with something like:

Connection c = dataSource.getProxyConnection (String proxytype, Properties userProp);

All our database access has to be through a connection proxy that is bound to a specific user with an account in the database. Meaning we can't just use getConnection method to get a connection from the datasource. We have to use getProxyConnection and pass specific information about the requesting user.

I am kind of new to hibernate so before I spend a lot of effort can anyone tell me if this is something hibernate can be configured to handle.

Thanks!!


Top
 Profile  
 
 Post subject: ...same requirement
PostPosted: Tue Aug 02, 2005 1:32 pm 
Newbie

Joined: Tue Aug 02, 2005 1:24 pm
Posts: 5
I'm currently working in a project using Hibernate 3.0, Spring on an Oracle Database.
We are already up and running but now the management told us about this new security requirement.
I confirm that the only way to accomplish is by using Oracle proxyAuthentication.
I think that is not currently supported by Hibernate also because it is not standard JDBC but it is Oracle Specific.

Do you think is it possible to have this feature supported in the near future or should we think to build some custom code to work with that (maybe in the hibernate layer, maybe in the spring layer)?

Please give us a hope!!!!

Thank you very much.

_________________
Riccardo Palombella
Accenture S.p.a.
Milan
Italy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 02, 2005 2:51 pm 
Expert
Expert

Joined: Wed Apr 06, 2005 5:03 pm
Posts: 273
Location: Salt Lake City, Utah, USA
If you haven't already seen it, you can use SessionFactory.openSession(Connection), and pass your own Connection object, instead of having Hibernate create it for you.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 02, 2005 3:13 pm 
Newbie

Joined: Tue Aug 02, 2005 1:24 pm
Posts: 5
[quote="nathanmoon"]If you haven't already seen it, you can use SessionFactory.openSession(Connection), and pass your own Connection object, instead of having Hibernate create it for you.[/quote]
I've seen but it cannot work in my application because I use spring HibernateTransactionManager to open and close connections as well as to manage transactions of course.

Thank you,
anyhow.

_________________
Riccardo Palombella
Accenture S.p.a.
Milan
Italy


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.