Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9551

Ability to add Properties binding in Naming subsystem

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Minor
    • None
    • 11.0.0.Final, 19.0.0.Final
    • Naming
    • None

    Description

      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");
      

      Attachments

        Activity

          People

            parsharm Parul Sharma
            rhn-support-bmaxwell Brad Maxwell
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: