Java Mailing List Archive

http://www.gg3721.com/

Home » users.openjpa »

Using encrypted connection password in persistence.xml

Rajeev Jha

2008-05-06


Author LoginPost Reply
Hello
we have a requirement of using DES encrypted passwords in openjpa
persistence.xml file. So before we create an actual connection we want
to decrypt the encrypted form. To do that ,

1) I need to read the encrypted password value from persistence.xml
2) supply the decrypted form before creating an EMF or EM

(2) looks easy to do , just proving a map with required name-values ,
however I have not been able to figure out (1) so far.
OpenJPAConfiguration has getConnectionPassword() method but I believe
OpenJPAConfiguration is not obtainable directly. Any idea on how to do
(1) in openJPA?


Thanks

- rajeev.
©2008 gg3721.com - Jax Systems, LLC, U.S.A.