> how can I keep encrypted password for connection to
> database for CMP or BMP components? And then
> transmeet decrypted password to datasource of
> connection pool when applicatin deployed?
I can only partially shed some light : if you have the encrypted password, then you cannot decrypt it anymore: this is the whole point of decrypting it. (I know, this is just a clarification, not a solution to your question)
> In the simple way I keep open password in the file
> mysql-service.xml (for example). But I want keep
> encrypted password anywhere.
If you are using as connection factory the MinervaSharedLocalCMFactory (as in the book example), you can provide an own implementation for the attribute
"PrincipalMappingClass" - this way, you can read username & password from wherever you want, it doesn't have to be in the config file
(Note: this is what I did in JBoss 2.4.x, don't know the details in 3.0)