4 Replies Latest reply on Dec 6, 2014 1:42 PM by Jörg E

    JBAS7 ejb-jar.xml properties placeholder

    Luca Merolla Newbie

      Hello everyone,

       

      I'm trying to migrate a project from JBAS6 to JBAS 7.0.2.

      In my configuration I have an ejb-jar.xml file containing some placeholder values like that:

      <session>

                                    <ejb-name>TestOne</ejb-name>

                                    <ejb-class>org.test.TestOne</ejb-class>

                                    <session-type>Stateless</session-type>

                                    <env-entry>

                                              <env-entry-name>ppone</env-entry-name>

                                              <env-entry-type>java.lang.Long</env-entry-type>

                                              <env-entry-value>${test.ppone}</env-entry-value>

                                    </env-entry>

      </session>

      On JBAS6 I'm using the SystemPropertiesService to load a properties file containing the values, like that:

      <mbean code="org.jboss.varia.property.SystemPropertiesService"
      name="jboss:type=Service,name=SystemProperties">
      <attribute name="URLList">
      ./conf/test.properties
      </attribute>
      </mbean>

      Everything works smoothly and the placeholder values get replaced by the value in the properties file.

       

      In JBAS7 I couldn't find the SystemPropertiesService, but in the Application Console we have the System Properties page where we can configure the properties values which I guess will be available globally. So I have tried to insert these values under the system properties but the values on the ejb-jar.xml doesnt get replaced.

       

      How can I achieve the behaviout of the SystemPropertiesService on JBAS7?

       

      Thanks in advance for help

       

      LM