This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 and Relational Databases
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: context get password from context.xml
 
It's not a secret anymore!