-
Feature Request
-
Resolution: Unresolved
-
Minor
-
None
-
11.0.0.Final, 19.0.0.Final
-
None
Something like this where multiple properties can be specified and then looked up as a java.util.Properties object:
<subsystem xmlns="urn:jboss:domain:naming:2.0"> <bindings> <properties name="java:global/myProperties"> <property name="environment" value="production"/> <property name="size" value="100"/> ... </properties> </bindings> </subsystem>
Application:
The application could then do one of these, resource injections or programatically to get the properties.
import java.util.Properties; import javax.annotation.Resource; @Resource(lookup="java:global/myProperties") private Properties myProperties;
Properties properties = (Properties) new InitialContext().lookup("java:global/myProperties");