datasource password [message #90272] |
Fri, 11 November 2005 13:54  |
Eclipse User |
|
|
|
Originally posted by: jspsim.yahoo.com
Hi,
is there any way to get the datasource password from a java class. Reason is
that, the production server db password is not made known to us, and the
only we can get it is call a java method which will return the db password.
regards,
kelvin
|
|
|
|
|
Re: datasource password [message #90412 is a reply to message #90398] |
Sat, 12 November 2005 01:33  |
Eclipse User |
|
|
|
Originally posted by: jspsim.yahoo.com
i realize that though it gives "Invalid javascript expression" during
saving of the template, during the runtime, it still gets the password
from the my Decryptor. So i guess my problems is solved, thanks Jason.
titan wrote:
> jason,
> i had tried your mentioned faq method, but the password still needs to be
> 'hardcoded', which is not possible for my case, as I don't have the
> password directly.
> I had also tried the other method using:
> dbpassword = Packages.java.lang.System.getenv("DB_PW");
> extensionProperties.odaPassword = dbpassword + "";
> Though it works, but my passwork will not be set in the environments, thus
> i modified it to be as follows:
> dbpassword = Packages.mypackage.myclass.Decryptor.getPassword();
> //<--using my own class
> extensionProperties.odaPassword = dbpassword + "";
> however, it gives a Invalid Javascript expression. Is there any way I can
> called my decryptor class to get the password.
> regards,
> kelvin
|
|
|
Powered by
FUDForum. Page generated in 0.03785 seconds