7 Replies Latest reply on Oct 8, 2009 7:16 AM by kconner

    Redployment with new paramater from SystemPropertiesService

    garuda

      Hello experts,

      I defined the following test-properties-service.xml, injecting an mbean for "org.jboss.varia.property.SystemPropertiesService"

      <?xml version="1.0" encoding="UTF-8"?>
      <server>
       <mbean code="org.jboss.varia.property.SystemPropertiesService"
       name="ach.properties:type=Service,name=TestProperties">
       <attribute name="Properties">
       test_parameter=/incoming_test
       </attribute>
       <attribute name="Properties">
      
       </mbean>
      </server>


      I use "test_parameter" in a service located in test.esb as filesystem lister value. See jboss.esb:
      <fs-message-filter
       directory="${test_parameter}/in"
       error-delete="false"
       error-directory="${test_parameter}/err"
       error-suffix=".err" input-suffix=".txt" post-delete="true"
       post-directory="${test_parameter}/archive"
       post-suffix=".done" work-suffix=".work"/>



      My main service test.esb has a deployment dependency on "ach.properties:type=Service,name=TestProperties".
      My deployment.xml:
      <jbossesb-deployment>
      ...
       <depends>ach.properties:type=Service,name=TestProperties</depends>
      
      ...
      </jbossesb-deployment>


      When I now change the value of parameter "test_parameter" to "/incoming_live" e.g. in my test-properties-service.xml, I would expect that
      1) Re - deployment of test-properties-service.xml
      2) Re - deployment of test.esb with new parameter test_parameter = "incoming_live"

      Re - deployment of test-properties-service.xml succeeds. I checked these properties in JMX. Test.esb re - deploys aswell, but not with the new parameter settings, but the old one. I checked the service in JMX MBEan View in JMX-Console I can only see the old configuration.

      Can you please help ? Why doesn't test.esb redeploy with new parameters?



      Best regards,

      Dennis