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

per application Expressions

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • None
    • EE
    • None

    Description

      Wildfly supports Expression Substitution in descriptors [1]. These expressions are server global.

      This should be enhanced to support application scoped expressions:
      ${this:aProperty}

      It would be especially useful for Message Driven Beans, as an ActivationConfigProperty can only be set in a descriptor or via an annotation, but not in application code, so ActivationConfigProperties are effectively fixed.

      Then you could deploy the same Message Driven Bean multiple times with a different name:

      myMDB1.ear
      myMDB2.ear

      having

      <activation-config-property-value>${this:queuename}</activation-config-property-value>

      and define

      <application-properties>
      <application name="myMDB_DEV_QUEUE_1.ear">
      <property name="queuename" value="DEV_QUEUE_1"/>
      </application>
      <application name="myMDB_DEV_QUEUE_2.ear">
      <property name="queuename" value="DEV_QUEUE_2"/>
      </application>
      </application-properties>

      whereas for production the queuename properties would be different.

      [1] https://docs.jboss.org/author/display/WFLY10/Expressions

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Gerald.Rueck@kreditwerk.de Juergen Weber (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: