I have a web application in which I want to inject property values (like external server hostname and password - environment dependent). I want to specify the values in the Wildfly configuration.
I thought I will specify simple JNDI binding in the urn:jboss:domain:naming subsystem, and inject property using @Resource
annotation, like:
@Resource(name = "java:app/rabbit.login")
private String login;
But in naming subsystem I cannot specify an application-scoped JNDI binding (it is necessary due to security reasons).
How can I specify properties (using JDNI, properties, etc.) in the Wildfly configuration accessible only for specific application?