Discussion:
ElasticSearch Shield for ServiceMix Bundle
frankc
2016-04-20 05:16:16 UTC
Permalink
Hi all, wonder if any plan on having ElasticSearch-Shield as part of the
ElasticSearch servicemix bundle? Currently I'm using 1.7.0_1 and trying to
integrate with Shield 1.3.3 (from ElasticSearch repo directly) but it seems
fails to load the bundle (ClassNotFoundException) on any reference to
com.elasticsearch.shield.xyz.

Thanks for your time.






--
View this message in context: http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Jean-Baptiste Onofré
2016-04-20 08:12:49 UTC
Permalink
Hi Frank,

I plan to create a shield specific bundle. I don't think it's a good
idea to embed shield directly in the elasticsearch.

As a workaround you can try wrap on the shield artifact.

Regards
JB
Post by frankc
Hi all, wonder if any plan on having ElasticSearch-Shield as part of the
ElasticSearch servicemix bundle? Currently I'm using 1.7.0_1 and trying to
integrate with Shield 1.3.3 (from ElasticSearch repo directly) but it seems
fails to load the bundle (ClassNotFoundException) on any reference to
com.elasticsearch.shield.xyz.
Thanks for your time.
--
View this message in context: http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
***@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
frankc
2016-04-20 15:53:27 UTC
Permalink
Hi JB,

Thanks for your feedback! That would be great if having a shield specific
bundle in the pipeline
Wonder if you have any estimate timeframe?

In fact, I have been trying with this in features.xml:

...
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/1.7.4_1</bundle>
<bundle>wrap:mvn:org.elasticsearch/elasticsearch-shield/1.3.3</bundle>
...

But when loading up the features in OSGI, it complains:
Reason: Package uses conflict: Import-Package: org.elasticsearch.shield;
version="0.0.0"

Interestingly, in MNAIFEST.MF of the bundle using ES+Shield, there is no
version for shield package specified:

Import-Package:
...
org.elasticsearch.action;version="[1.7,2)",
org.elasticsearch.action.admin.indices.create;version="[1.7,2)",
org.elasticsearch.action.admin.indices.delete;version="[1.7,2)",
org.elasticsearch.action.admin.indices.exists.indices;version="[1.7,2)"
,
org.elasticsearch.action.admin.indices.mapping.put;version="[1.7,2)",
org.elasticsearch.action.bulk;version="[1.7,2)",
org.elasticsearch.action.index;version="[1.7,2)",
org.elasticsearch.action.search;version="[1.7,2)",
org.elasticsearch.client;version="[1.7,2)",
org.elasticsearch.client.transport;version="[1.7,2)",
org.elasticsearch.common.settings;version="[1.7,2)",
org.elasticsearch.common.transport;version="[1.7,2)",
org.elasticsearch.common.unit;version="[1.7,2)",
org.elasticsearch.common.xcontent;version="[1.7,2)",
org.elasticsearch.index.query;version="[1.7,2)",
org.elasticsearch.search;version="[1.7,2)",
org.elasticsearch.shield,
...

Not sure if this indicate anything. I'm sure I must be missing something
basic.

Under non-OSGI environment (like Junit), the function using Shield works
fine.

Thanks for your time.

Best Regards,
Frank
Post by Jean-Baptiste Onofré
Hi Frank,
I plan to create a shield specific bundle. I don't think it's a good
idea to embed shield directly in the elasticsearch.
As a workaround you can try wrap on the shield artifact.
Regards
JB
Post by frankc
Hi all, wonder if any plan on having ElasticSearch-Shield as part of the
ElasticSearch servicemix bundle? Currently I'm using 1.7.0_1 and trying to
integrate with Shield 1.3.3 (from ElasticSearch repo directly) but it seems
fails to load the bundle (ClassNotFoundException) on any reference to
com.elasticsearch.shield.xyz.
Thanks for your time.
--
http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
http://blog.nanthrax.net
Talend - http://www.talend.com
--
View this message in context: http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618p5723620.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Jean-Baptiste Onofré
2016-04-21 17:03:29 UTC
Permalink
Hu
I plan to include shield bundle in the end of this month bundles release.
Regards JB 

-------- Original message --------
From: frankc <***@hotmail.com>
Date: 20/04/2016 16:53 (GMT+00:00)
To: ***@servicemix.apache.org
Subject: Re: ElasticSearch Shield for ServiceMix Bundle

Hi JB,

Thanks for your feedback!  That would be great if having a shield specific
bundle in the pipeline
Wonder if you have any estimate timeframe?

In fact, I have been trying with this in features.xml:

...
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch/1.7.4_1</bundle>
<bundle>wrap:mvn:org.elasticsearch/elasticsearch-shield/1.3.3</bundle>
...

But when loading up the features in OSGI, it complains:
Reason: Package uses conflict: Import-Package: org.elasticsearch.shield;
version="0.0.0"

Interestingly, in MNAIFEST.MF of the bundle using ES+Shield, there is no
version for shield package specified:

Import-Package:
...
org.elasticsearch.action;version="[1.7,2)",
org.elasticsearch.action.admin.indices.create;version="[1.7,2)",
org.elasticsearch.action.admin.indices.delete;version="[1.7,2)",
org.elasticsearch.action.admin.indices.exists.indices;version="[1.7,2)"
,
org.elasticsearch.action.admin.indices.mapping.put;version="[1.7,2)",
org.elasticsearch.action.bulk;version="[1.7,2)",
org.elasticsearch.action.index;version="[1.7,2)",
org.elasticsearch.action.search;version="[1.7,2)",
org.elasticsearch.client;version="[1.7,2)",
org.elasticsearch.client.transport;version="[1.7,2)",
org.elasticsearch.common.settings;version="[1.7,2)",
org.elasticsearch.common.transport;version="[1.7,2)",
org.elasticsearch.common.unit;version="[1.7,2)",
org.elasticsearch.common.xcontent;version="[1.7,2)",
org.elasticsearch.index.query;version="[1.7,2)",
org.elasticsearch.search;version="[1.7,2)",
org.elasticsearch.shield,
...

Not sure if this indicate anything. I'm sure I must be missing something
basic.

Under non-OSGI environment (like Junit), the function using Shield works
fine.

Thanks for your time.

Best Regards,
Frank
Post by Jean-Baptiste Onofré
Hi Frank,
I plan to create a shield specific bundle. I don't think it's a good
idea to embed shield directly in the elasticsearch.
As a workaround you can try wrap on the shield artifact.
Regards
JB
Post by frankc
Hi all, wonder if any plan on having ElasticSearch-Shield as part of the
ElasticSearch servicemix bundle?  Currently I'm using 1.7.0_1 and trying
to
integrate with Shield 1.3.3 (from ElasticSearch repo directly) but it
seems
fails to load the bundle (ClassNotFoundException) on any reference to
com.elasticsearch.shield.xyz.
Thanks for your time.
--
http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
--
Jean-Baptiste Onofré
http://blog.nanthrax.net
Talend - http://www.talend.com
--
View this message in context: http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618p5723620.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
frankc
2016-06-21 21:49:54 UTC
Permalink
Hi JB,

Wonder if the Shield-included bundles are ready and available yet?

Thanks,
Frank




--
View this message in context: http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618p5723814.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
frankc
2016-08-11 20:14:10 UTC
Permalink
Hi JB,

Wonder if the Shield-included bundles are ready and available yet?

Thanks,
Frank



--
View this message in context: http://servicemix.396122.n5.nabble.com/ElasticSearch-Shield-for-ServiceMix-Bundle-tp5723618p5723919.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Loading...