users@glassfish.java.net

Re: Glassfish and JDBC credentials encrypted

From: <glassfish_at_javadesktop.org>
Date: Tue, 28 Apr 2009 22:24:57 PDT

You could try the asadmin create-password-alias command. The domain.xml is updated with the aliased password.

asadmin create-password-alias --port 4848 --user admin --passwordfile /opt/password.txt oracle-alias

The domain.xml is updated like :
<property name="password" value="${ALIAS=oracle-alias}"/> for the corresponding pool.

password.txt contents :

AS_ADMIN_PASSWORD=adminadmin (the password needed to start the domain or the administrative password)
AS_ADMIN_ALIASPASSWORD=mypassword (password that you need to encrypt ex:the database password that is stored in clear as of now in domain.xml that you want it replaced with alias)
[Message sent by forum member 'sm157516' (sm157516)]

http://forums.java.net/jive/thread.jspa?messageID=344261