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 context get password from context.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


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: 12
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: 1107

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: 12
I use Struts2.

Polo
 
GeeCON Prague 2014
 
subject: context get password from context.xml