[ 
https://issues.apache.org/jira/browse/SM-2481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14375628#comment-14375628
 ] 

Concombre Masqué commented on SM-2481:
--------------------------------------

Yes you can create another broker by creating another config file but no pool 
connection factory is created and registered in the OSGi registry. The 
ServiceMix ActiveMQ Service bundle is of little use as a consequence. But I 
understand that you are aware of this limitation.

I also think a Managed Service Factory attached to org.apache.activemq.server 
factory PID would be the best solution.

If you can make it for the release of SMX 6 this would be great. Thank you.


> activemq-service blueprint uses dash in persistent id: config file is never 
> loaded nor read
> -------------------------------------------------------------------------------------------
>
>                 Key: SM-2481
>                 URL: https://issues.apache.org/jira/browse/SM-2481
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: activemq
>    Affects Versions: 6.0.0.M1
>         Environment: Windows XP
> Java 8
> ServiceMix 6.0.0.M1
>            Reporter: Concombre Masqué
>            Assignee: Krzysztof Sobkowiak
>             Fix For: 5.4.1, 5.5.0, 6.0.0.M2, 6.0.0
>
>
> Bundle 
> 'org.apache.servicemix.activemq/org.apache.servicemix.activemq.service' 
> defines a blueprint with following declaration:
> {code}
> <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>
> {code}
> 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/%[email protected]%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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to