Re: [osgi-dev] Osgi bundle does not keep listening to osgfiyed ActiveMq broker

2017-02-24 Thread Mestiri Meher
I did resolved my issue, it was a rooky mistake as I'm new over osgi and had no experience working with threading. Right now it's ok for me I resolved the issue. If I could help lemme know. 2017-02-24 9:44 GMT+01:00 Mestiri Meher : > I don't know if you received or not

Re: [osgi-dev] osgi broker bundle

2017-02-24 Thread Christian Schneider
I was not suggesting to use karaf. But looking into the karaf features can help with the setup for bndtools. For eclipse paho you just need to download this one bundle and put it into your index but paho does not give you a broker it is only the client. For mqtt I typically use the mosquitto

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Christian Schneider
I first thought you only need a client and wanted to provide a small set of bundles. There is a also an activemq-broker feature. So that at least could help in finding necessary dependencies. Christian On 24.02.2017 09:58, Randy Leonard wrote: Just to clarify: - I am using

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Randy Leonard
Just to clarify: - I am using activemq-osgi-5.14.3. - The karaf feature you reference in the other thread seems to leverage activemq-client? > On Feb 24, 2017, at 1:52 AM, Randy Leonard > wrote: > >> Do you have blueprint in your index? > > - If you mean

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Randy Leonard
Meher: A key benefit of MQ is guaranteed message delivery, but embedding the broker within the JVM negates this benefit as non-received messages are lost if the producer JVM crashes. For my scenario, it is best I figure out how to get activemq-osgi-5.14.3 to work. Randy > On Feb 24,

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Christian Schneider
Yes. You require blueprint but apparently activemq requires it anyway. So that should make no difference. The point is.. Do you have blueprint in your index? Christian On 24.02.2017 09:33, Randy Leonard wrote: Christian: Do you have any bundle providing the blueprint packages in your index?

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Christian Schneider
I can imagine it is hard. ActiveMQ is not very OSGi friendly. We run it for a long time in karaf already but there it is easier with the features. I suggest to try eclipse paho. It is so much easier. Christian On 24.02.2017 09:34, Mestiri Meher wrote: Because I did not succeeded in this, I had

Re: [osgi-dev] osgi broker bundle

2017-02-24 Thread Christian Schneider
ActiveMQ is not a good choice for MQTT. It needs a lot of dependencies. If you just need a client I would try eclipse paho first. In karaf it is just this: install -s mvn:org.eclipse.paho/org.eclipse.paho.client.mqttv3/1.1.0 For bndtools you have to put that bundle into an index first of

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Mestiri Meher
Because I did not succeeded in this, I had lot of issues between dependencies, so with the maven stuff it did not took me more than 20 minutes to get it working. 2017-02-24 9:31 GMT+01:00 Christian Schneider : > Why do you create a bundle from activemq? It already

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Randy Leonard
Christian: > Do you have any bundle providing the blueprint packages in your index? I am actually providing blueprint in my runrequires property within bnd.bnd, as follows: >> -runrequires: \ >> ………. >> >>

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Christian Schneider
Why do you create a bundle from activemq? It already provides a ready to use bundle. If you want to know how to install it you can look at the apache karaf feature for activemq below. If you install these bundles you should be on the safe side. What is hidden there is that it also needs some

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Mestiri Meher
I confirm, I've already the activeMq as bundle but in my dependencies I'm not having the blueprint. 2017-02-24 9:27 GMT+01:00 Christian Schneider : > Do you have any bundle providing the blueprint packages in your index? > I also wonder a bit why activemq requires

Re: [osgi-dev] enRoute and Apache MQ v5.14.3

2017-02-24 Thread Mestiri Meher
Hello Randy, Actually I was able to bundle the activeMq broker, and I suggest you to do it without the enRoute framework, the easiest way is by using maven and the maven-bundle-plugin which will allow you to create a bundle from a maven project. It's very handy once you want to osgfy an existing

Re: [osgi-dev] Osgi bundle does not keep listening to osgfiyed ActiveMq broker

2017-02-24 Thread Randy Leonard
First, a comment: - Your issue is with the consumer, but you have provided code for the producer ;) You will see on the subsequent post I am also having an issue with Apache MQ. Some questions: - Are you using 'activemq-all-5.14.3', or 'activemq-osgi-5.14.3’ - If you wish to zip up your