File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 3775

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]
 
 
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
Hiding password value from persistance.xml
Datasource 4 Datasource 5 in WebSphere5