activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Edstrom <>
Subject Re: ActiveMQ & OSGI dependency
Date Sat, 09 Dec 2017 18:19:11 GMT
Use a failover connector URI?
It’ll keep trying to reconnect until a connection is established.
You can control retry-time and so on.


> On Dec 8, 2017, at 4:24 PM, smunro <> wrote:
> Hello,
> I have an OSGI bundle which makes use of the ActiveMQ OSGI feature. The
> problem is that my bundle starts too early and there is no connection to the
> broker available.
> I don't want to mess around with start levels in karaf as it's not
> guaranteed to work. The only other option I can think of is to define a loop
> that repeatedly tries to connect, but I was hoping there might be a cleaner
> option. It would be nice if I could get a handle to the broker and block my
> own bundle until it's up a new running (without looping and catching
> connection exceptions). Any suggestions?
> --
> Sent from:

View raw message