Hi Giuseppe,

there's different ways:

1. You can use feature and define the broker feature as
prerequisite=true. Then the broker feature will be installed before others.

2. You can use a ServiceTracker to listen for the broker service.

3. You can also test if the transport connector is bound (it's what we
are using in the Karaf itest for instance).

4. You can play with the start level.

Regards
JB

On 19/02/2019 10:44, Giuseppe Gerla wrote:
> Hi guys
> I have a problem with amq broker. My bundle try to connect to the
> broker, beofre it is started.
> How can I check programatically that the broker is started?
> There is an OSGi service for the broker, so I can use a tracker?
> 
> 
> 
> Thanks
> regards
> Giuseppe

-- 
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to