You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2022/12/01 17:48:58 UTC

[GitHub] [camel-karaf] essobedo opened a new pull request, #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

essobedo opened a new pull request, #219:
URL: https://github.com/apache/camel-karaf/pull/219

   Fix for https://issues.apache.org/jira/browse/CAMEL-18787
   
   ## Motivation
   
   The new component `camel-elasticsearch` has been added to Camel 3.19 and needs to be added to Camel Karaf too.
   
   ## Modifications:
   
   * Add the feature `camel-elasticsearch` to the existing ones


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] essobedo merged pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
essobedo merged PR #219:
URL: https://github.com/apache/camel-karaf/pull/219


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] essobedo commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334874340

   @jbonofre Actually with this new client the license is compatible since it is [an Apache 2.0](https://github.com/elastic/elasticsearch-java/blob/main/LICENSE.txt) 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] essobedo commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334905751

   @jbonofre I have a PR ready to be pushed for that


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] essobedo commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334137038

   I'm wondering if `elasticsearch-java` is worth a service mix bundle if so I can create it too but this should be good enough for Camel 3.20. WDYT?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] jbonofre commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
jbonofre commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334803016

   For license question, it's not really possible to create a SMX bundle for elasticsearch. That's why now SMX bundles provide open search. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] essobedo commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334912438

   Here the ticket https://issues.apache.org/jira/browse/SM-5414


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] essobedo commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
essobedo commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334133484

   Tested successfully with the next routes:
   
   ```
   <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
              xsi:schemaLocation="
                http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
                http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
   
       <!-- blueprint property placeholders, that will use etc/elastic.cfg as the properties file -->
       <cm:property-placeholder persistent-id="elastic" update-strategy="reload">
   
       </cm:property-placeholder>
   
       <bean id="elasticsearch" class="org.apache.camel.component.es.ElasticsearchComponent">
           <property name="enableSSL" value="true"/>
           <property name="hostAddresses" value="${elastic.url}"/>
           <property name="user" value="${elastic.user}"/>
           <property name="password" value="${elastic.password}"/>
           <property name="certificatePath" value="${elastic.certificate}"/>
       </bean>
   
       <camelContext xmlns="http://camel.apache.org/schema/blueprint">
           <route>
               <from uri="timer:myTimer?period=5000" />
               <to uri="elasticsearch://elasticsearch?operation=Exists&amp;indexName={{elastic.index}}" />
               <log message="Index exist: ${body}"/>
               <setBody><simple>{"date": "${header.firedTime}", "someKey": "someValue"}</simple></setBody>
               <to uri="elasticsearch://elasticsearch?operation=Index&amp;indexName={{elastic.index}}" />
               <log message="Index doc: ${body}"/>
               <setHeader name="_ID"><simple>${body}</simple></setHeader>
               <to uri="elasticsearch://elasticsearch?operation=GetById&amp;indexName={{elastic.index}}" />
               <log message="Get doc: ${body}"/>
               <setHeader name="indexId"><simple>${header._ID}</simple></setHeader>
               <setBody><constant>{"doc": {"someKey": "someValue2"}}</constant></setBody>
               <to uri="elasticsearch://elasticsearch?operation=Update&amp;indexName={{elastic.index}}" />
               <log message="Update doc: ${body}"/>
               <setBody><simple>${header._ID}</simple></setBody>
               <to uri="elasticsearch://elasticsearch?operation=GetById&amp;indexName={{elastic.index}}" />
               <log message="Get doc: ${body}"/>
               <setBody><simple>${header._ID}</simple></setBody>
               <to uri="elasticsearch://elasticsearch?operation=Delete&amp;indexName={{elastic.index}}" />
               <log message="Delete doc: ${body}"/>
           </route>
       </camelContext>
   
   </blueprint>
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [camel-karaf] jbonofre commented on pull request #219: CAMEL-18787: Add the camel-elasticsearch Karaf feature

Posted by GitBox <gi...@apache.org>.
jbonofre commented on PR #219:
URL: https://github.com/apache/camel-karaf/pull/219#issuecomment-1334903562

   Ah yes for this client. Let me do the bundle. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org