Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-10820

Properties place holder ignored when used inside annotations

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: EAP_EWP 5.2.0
    • Fix Version/s: EAP_EWP 5.3.0.ER1
    • Component/s: None
    • Labels:
      None
    • Release Notes Text:
      Hide
      Possible draft release notes content:

      In previous EAP5 version, you can configure an MDB that consumes messages on a remote Hornet Queue using xml as follows:

      <activation-config-property>
      <activation-config-property-name>destination</activation-config-property-name>
      <activation-config-property-value>${destination:queue/testSubstitutionQueue}</activation-config-property-value>
      </activation-config-property>

      This feature simply allows you to do the same property substitution inside @ActivationConfigProperty and @ResourceAdapter for an MDB like this example:

      @MessageDriven(name = "SubstitutionQueueBean", activationConfig = {
              @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),
              @ActivationConfigProperty(propertyName = "destination", propertyValue = "${destination:queue/testSubstitutionQueue}"),
              @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "toEntity = '${myEntity}'"),
              @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") })
      @ResourceAdapter("${resource.adapter}")
      Show
      Possible draft release notes content: In previous EAP5 version, you can configure an MDB that consumes messages on a remote Hornet Queue using xml as follows: <activation-config-property> <activation-config-property-name>destination</activation-config-property-name> <activation-config-property-value>${destination:queue/testSubstitutionQueue}</activation-config-property-value> </activation-config-property> This feature simply allows you to do the same property substitution inside @ActivationConfigProperty and @ResourceAdapter for an MDB like this example: @MessageDriven(name = "SubstitutionQueueBean", activationConfig = {         @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),         @ActivationConfigProperty(propertyName = "destination", propertyValue = "${destination:queue/testSubstitutionQueue}"),         @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = "toEntity = '${myEntity}'"),         @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge") }) @ResourceAdapter("${resource.adapter}")
    • Release Notes Docs Status:
      Not Yet Documented
    • Docs QE Status:
      NEW

      Description

      Allow propertied be used in the mdb config
      ie.

      <activation-config-property>
      <activation-config-property-name>JndiParams</activation-config-property-name>
      <activation-config-property-value>$

      {stage.JndiParams}

      </activation-config-property-value>
      </activation-config-property>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  soul2zimate Chao Wang
                  Reporter:
                  ShaunA Shaun Appleton
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: