Re: How to encrypt DB password in persistence.xml

2009-09-01 Thread wang yu
Wang - OPENJPA-1089[1] wasn't your exact problem, but I want you to be aware that a change was made. Thanks - Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1089 -- View this message in context: http://n2.nabble.com/How-to-encrypt-DB-password

Re: How to encrypt DB password in persistence.xml

2009-09-01 Thread Kevin Sutter
this message in context: http://n2.nabble.com/How-to-encrypt-DB-password-in-persistence.xml-tp2868212p3400811.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: How to encrypt DB password in persistence.xml

2009-08-13 Thread wang yu
...@gmail.com wrote: Yu Wang - OPENJPA-1089[1] wasn't your exact problem, but I want you to be aware that a change was made. Thanks - Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1089 -- View this message in context: http://n2.nabble.com/How-to-encrypt-DB-password

Re: How to encrypt DB password in persistence.xml

2009-08-13 Thread Michael Dick
this message in context: http://n2.nabble.com/How-to-encrypt-DB-password-in-persistence.xml-tp2868212p3400811.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: How to encrypt DB password in persistence.xml

2009-08-07 Thread wang yu
: http://n2.nabble.com/How-to-encrypt-DB-password-in-persistence.xml-tp2868212p3400811.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: How to encrypt DB password in persistence.xml

2009-08-07 Thread Michael Dick
exact problem, but I want you to be aware that a change was made. Thanks - Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1089 -- View this message in context: http://n2.nabble.com/How-to-encrypt-DB-password-in-persistence.xml-tp2868212p3400811.html Sent from the OpenJPA

Re: How to encrypt DB password in persistence.xml

2009-08-06 Thread Rick Curtis
Yu Wang - OPENJPA-1089[1] wasn't your exact problem, but I want you to be aware that a change was made. Thanks - Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1089 -- View this message in context: http://n2.nabble.com/How-to-encrypt-DB-password-in-persistence.xml-tp2868212p3400811

Re: How to encrypt DB password in persistence.xml

2009-05-19 Thread wang yu
Kevin, Thanks for your patient answer. I'll try to resolve it in dbcp community. Cheers, Yu Wang On Mon, May 18, 2009 at 9:03 PM, Kevin Sutter kwsut...@gmail.com wrote: Hi Yu Wang, My apologies, but I'm not an expert with DBCP.  I just thought I would do a quick Google search to see what's

Re: How to encrypt DB password in persistence.xml

2009-05-18 Thread wang yu
Hi Kevin, Thanks. The link you gave indicate how to extend BasicDataSourceFactory. But I guess this approach isn't feasible for OpenJPA. I need to extend BasicDataSource directly, right? And you mentioned there were other instructions on extending the BasicDataSource. Can you make it clearer?I

Re: How to encrypt DB password in persistence.xml

2009-05-18 Thread Kevin Sutter
Hi Yu Wang, My apologies, but I'm not an expert with DBCP. I just thought I would do a quick Google search to see what's out there and I found a few hits, one of which I posted to my previous reply. Since you seem to be interested in encrypting the password being sent in to DBCP, you will

Re: How to encrypt DB password in persistence.xml

2009-05-15 Thread wang yu
Hi Kevin, Thank you. You had real good solutions but unfortunately neither of them is feasible for our project. We use Apache dbcp datasource to leverage DB connection pool and tomcat 5.5 as app server. Following is a fragment of our persistence.xml: property

Re: How to encrypt DB password in persistence.xml

2009-05-15 Thread Kevin Sutter
Hi Yu Wang, Or, you could develop an answer for OpenJPA and contribute it back to the project... :-) Providing an encryption capability for persistence.xml password values would be a nice feature. But, this would probably only apply to our openjpa.* properties... In your particular case where

Re: How to encrypt DB password in persistence.xml

2009-05-15 Thread Donald Woods
We have a similar feature in Apache Geronimo for our config.xml and deployment plans. The only downside of adding this to OpenJPA, is we would then have to follow the ASF Cryptography release guidelines at - http://www.apache.org/dev/crypto.html since we would be using encryption/decryption

Re: How to encrypt DB password in persistence.xml

2009-05-15 Thread Kevin Sutter
Thanks for the insights, Donald. And, thanks for posting this info to the JIRA Issue (openjpa-1089) as well. Kevin On Fri, May 15, 2009 at 10:25 AM, Donald Woods dwo...@apache.org wrote: We have a similar feature in Apache Geronimo for our config.xml and deployment plans. The only downside

Re: How to encrypt DB password in persistence.xml

2009-05-14 Thread Kevin Sutter
Hi, JPA does not define this functionality. You could pass in the password via the application instead of hard-coding it in a persistence.xml. Or, if you are in an app server environment, you should use a jndi lookup of a datasource. This would be the most secure. Kevin On Tue, May 12, 2009

How to encrypt DB password in persistence.xml

2009-05-12 Thread wang yu
As title. Regards, Yu Wang