Re: ActiveMQ & OSGI dependency

2017-12-09 Thread smunro
Hello seijoed, Thanks for the reply. That sound like the way to go given the options I've looked at. I did find something earlier that looked very promising, the BrokerService, which I tried to use as follows @Reference public void setBrokerService(BrokerService service{..} The problem with thi

Re: ActiveMQ & OSGI dependency

2017-12-09 Thread Johan Edstrom
Use a failover connector URI? It’ll keep trying to reconnect until a connection is established. You can control retry-time and so on. /je > 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 bund

ActiveMQ & OSGI Startup

2017-12-09 Thread smunro
Hello, I've got a small project which has an OSGI bundle deployed on Karaf. It uses the latest ActiveMQ feature. The issue is that my bundle is starting up before the Broker has fully started. Is there a clean way to tell the bundle to wait until the broker has fully initialised to start receivin

ActiveMQ & OSGI dependency

2017-12-09 Thread smunro
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 o