Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2481

activemq-service blueprint uses dash in persistent id: config file is never loaded nor read

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.0.0.M1
    • 5.4.1, 5.5.0, 6.0.0.M2, 6.0.0
    • activemq
    • None
    • Windows XP
      Java 8
      ServiceMix 6.0.0.M1

    Description

      Bundle 'org.apache.servicemix.activemq/org.apache.servicemix.activemq.service' defines a blueprint with following declaration:

      <cm:property-placeholder persistent-id="org.apache.activemq.server-default" update-strategy="reload">
      <cm:default-properties>
      <cm:property name="broker-name" value="amq-broker"/>
      </cm:default-properties>
      </cm:property-placeholder>
      

      Problem is: because of the dash in the persistent id the configuration will never be read from file etc/org.apache.activemq.server-default.cfg (such file is handled by a service factory and not registered in config admin with the '-default' suffix).
      As a result, if we modify broker-name property value in this file, activemq-service is not aware of the change and the broker name published in the OSGi Registry is still 'amq-broker' (check with command 'ls ConnectionFactory' and 'jndi:names').

      This issue has already been reported here:
      https://issues.jboss.org/browse/ESB-844
      http://mail-archives.apache.org/mod_mbox/activemq-users/201501.mbox/%3C1422012255271-4690323.post@n4.nabble.com%3E

      Don't know how to quickly fix this though as we need a dash in the config file name to make use of the managed service factory.

      Attachments

        Activity

          People

            sobkowiak Krzysztof Sobkowiak
            nsaboy Concombre Masqué
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: