1 Reply Latest reply on Jul 26, 2012 5:41 AM by jaikiran pai

    System properties and EJB 3.1 MDB config

    Vladimir Kishlaly Newbie

      As I know, activation properties for message-driven beans can be applied using these two ways (or in their intersections):

       

      1) with annotations

      2) with ejb-jar.xml deployment descriptor

       

      In AS7 I met system properties approach setted in standalone.xml (or domain.xml) like following:

       

      <system-properties>

         <property name="testProp" value="test"/>

      </system-properties>

       

      and anywhere in code this property can be obtained with System.getProperty("testProp").

      The main (and I believe a quite wild idea) - whether I can to use such system property in MDB's activation config? For example:

       

      <activation-config-property>

          <activation-config-property-name>destination</activation-config-property-name>

          <activation-config-property-value>${myQueueName}</activation-config-property-value>

      </activation-config-property>

       

      Are there any ways to implement such "placeholders-approach" in MDB's under AS7?

       

      Thanks,

      Vladimir