1 Reply Latest reply on Jul 15, 2008 1:00 PM by peterj

    SystemPropertiesService & JBoss 5.0.0.CR1

    jc7442

      I try to migrate from JBoss 4.2.2.GA to JBoss 5.0.0.CR1 on Windows XP.

      With JBoss 4.2.2, I was used to update all MBean xml deployer in order to use system properties for all the port used by MBeans in order to be able to easily deploy my server on different platform. All the port was in an external configuration file.

      To do that, I update conf/jboss-service.xml to add

      <mbean code="org.jboss.varia.property.SystemPropertiesService"
       name="jboss:type=Service,name=SystemProperties">...


      I have tried with JBoss5 CR1. I have an issue. SystemPropertiesService replace only properties included in xml file contains in the folder deploy

      and not properties included in xml contains in folder conf. In conf/jboss-service.xml for example WebService MBean is configured. If its port is specified using a system properties that should be replace by the SystemPropertiesService, it does not works ... It only works if system property is set using run -D...

      From that point of view there is a regression between Jboss4.2.2 and Jboss 5.0.0.CR1. Is it a bug ?

        • 1. Re: SystemPropertiesService & JBoss 5.0.0.CR1
          peterj

           

          jc7442 wrote:
          With JBoss 4.2.2, I was used to update all MBean xml deployer in order to use system properties for all the port used by MBeans in order to be able to easily deploy my server on different platform. All the port was in an external configuration file.


          You do know that there is a binding service that does the same thing. don't you? Not that it would help in this case, it is also broke in 5.0.

          I think that you would have to specify that each MBean that declares a port is dependent on the system properties service mbean - that should get the properties set before they are used.