aspose file tools*
The moose likes JDBC and the fly likes personalized connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "personalized connection" Watch "personalized connection" New topic
Author

personalized connection

Alex Tosh
Greenhorn

Joined: Jul 17, 2002
Posts: 13
Hi,
we have the requirement to use within our J2EE-Application personalized JDBC-connections (Oracle-DB). Is it possible to configure DataSources in a way, so that every user connects to the DB with his own username and password?
thanks
Alex
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
See javax.sql.DataSource#getConnection(String username, String password)...


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Alex Tosh
Greenhorn

Joined: Jul 17, 2002
Posts: 13
Hi Lasse,
thanks for your answer. I was familiar with that overloaded method, but how to configure the DataSource? We use JBoss 3.2.1 and I guess that we will have to implement the Authorization with JAAS.
cheers
Alex
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
I'm afraid I cannot help you on how to configure the DataSource -- it's purely a question of how the JBoss guys have done it and I haven't used JBoss that extensively. You should ask the question at JBoss.org forums or at our own JavaRanch JBoss forum.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: personalized connection