karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smunro <stephen.ross.mu...@gmail.com>
Subject Re: ActiveMQ not starting soon enough
Date Sat, 09 Dec 2017 11:46:40 GMT
Thanks JB,

The second approach certainly feels the cleanest to me. I gave that a go and
found it couldn't be achieved due to both the broker and client bundles
exposing the same package: 
 <Import-Package>*,org.apache.activemq.broker</Import-Package>

So, sadly I can't get away with doing:
@Reference
public void setBrokerService(BrokerService brokerService){ .. }

This was raised on the activemq forums last April:
http://activemq.2283324.n4.nabble.com/ActiveMQ-and-OSGi-Two-bundles-export-the-same-package-org-apache-activemq-broker-td4730106.html

I'll try your first suggested approach, but I'm ma little disappointed I
couldn't get the second method to work :(

Thanks again,
Stephen



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html

Mime
View raw message