users@glassfish.java.net

Re: Questions about asadmin create-password-alias

From: <glassfish_at_javadesktop.org>
Date: Thu, 14 May 2009 11:29:10 PDT

Hi,
Good questions!
> 1- Is the alias replaced once at startup or is it
> decrypted each time a new connection is added to the
> pool?

It is actually queried for by the pool implementation when connection pool is used by the
application.

> 2- Can I place aliases in. web.xml as well?
> I need to store an ecnrypted config value that I must
> pass to my servlet. If it canot be done.
> Can I put my "value" as a command parameter such as
> -Dmyvalue=${alias=bla} and read the property in my
> servlet?

Not exactly, but you can send something that is encrypted to your servlet. But the facility is
available to data that is stored in domain.xml alone.

-Kedar
[Message sent by forum member 'km' (km)]

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