CDI injection of string values ​​from XML implementation / deployment time specification

In Spring, you can define string values ​​(for example: server names, user names, passwords, etc.) in the application context XML file. They can be changed for each deployment (for example, testing, production, etc.). Can I do the same in CDI? If not, what is an acceptable template to handle the value deployment time specification?

+3
source share
1 answer

You will need to create a portable extension to do this, there is nothing out of the box for this.

+1
source

All Articles