This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes how can i use jndi to connect to rhe database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "how can i use jndi to connect to rhe database " Watch "how can i use jndi to connect to rhe database " New topic
Author

how can i use jndi to connect to rhe database

sandeep tava
Greenhorn

Joined: Apr 02, 2008
Posts: 9
My requirement:

I am using JNDI to Connect to the database.For that i am specifying the parameters in context.xml...But i want to choose the password field to be encrypted i.e. password cannot be visible in a cleartext.How can i do that?
Otherwise is there any other way to use jndi for hiding the password details.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3817

Not clear what's your exact requirement.
password cannot be visible in a cleartext


this has something to do with authentication?

Sun JNDI tutorial might be helpful (contains LDAP Authenticaion details as well if you are interested)
[ November 05, 2008: Message edited by: Vijitha Kumara ]

SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
Consider Paul's rocket mass heater.
 
subject: how can i use jndi to connect to rhe database
 
Similar Threads
jdbc:odbc password definition
JDBC-ODBC Bridge VS JNDI
Connect oracle databse from Websphere 6.1 with OS Authentication
Datasource 4 Datasource 5 in WebSphere5
Hiding password value from persistance.xml