wood burning stoves 2.0*
The moose likes JDBC and the fly likes context get password from context.xml 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 "context get password from context.xml" Watch "context get password from context.xml" New topic
Author

context get password from context.xml

Polo Palos
Greenhorn

Joined: Mar 17, 2006
Posts: 11
I have in context.xml crypted password.
File: context.xml

File: connectDB.java


How to get the username from context, decrypt it and then use it on setup the connection?

Polo
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1106

Polo Palos wrote:I have in context.xml crypted password.
File: context.xml

File: connectDB.java


How to get the username from context, decrypt it and then use it on setup the connection?

Polo


Are you using any framework?
Polo Palos
Greenhorn

Joined: Mar 17, 2006
Posts: 11
I use Struts2.

Polo
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: context get password from context.xml
 
Similar Threads
Datasource configuration in Tomcat
How to connect mysql database with struts application through jndi
Solution ------ Cannot create JDBC driver of class '' for connect URL 'null'
Unable to configure tomcat 6.0 datasource from within eclipse.
spring security form based login using database not responding