-->
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: Connecting to a DataSource programatically
PostPosted: Thu Apr 12, 2007 3:39 pm 
Newbie

Joined: Thu Mar 08, 2007 10:44 pm
Posts: 5
Hi,

I'd like to verify that a user can log into the Oracle database before they can use the application. I would like to use their Oracle user name and password for the verification. In VB, I would write something like:

Code:
ConnectString = "Server=" & m_dataSource & ";uid=" & m_userid & ";pwd=" & m_password
conn = New OracleClient.OracleConnection(ConnectString)


However, since hibernate handles the connections for (very nicely) I am not sure how I can verify if a user has a access to the Oracle database.

Does hibernate provide a way to connect programatically? How so?
If not, does it provide a way to dynamically change the user parameters programatically? How so?


Thank you,

Marc


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.