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

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • EAP_EWP 5.3.0.ER1
    • EAP_EWP 5.2.0
    • None
    • None
    • 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}")
    • Not Yet Documented
    • 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>

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              rhn-support-sappleton Shaun Appleton
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: