Camel + marklogic without using Marklogic Content Pump

I am trying to pick up a json file from the file system and trying to insert the file into the marklogic database.

<route id="file_upload">
  <!-- incoming requests from the file is routed -->
  <from uri="file:/E:/camel/input"/>
  <to uri="http://localhost:8005/v1/documents?uri/patents/test.json"/>
</route>

Username and password: admin / admin for an instance of the marklogic instance running on 8005

+4
source share
1 answer

There are examples of Camel / MarkLogic integration into https://github.com/rjrudin/ml-camel-client . They just use mlcp (as a built-in library) and XCC - I will add a REST API example right now and answer back.

https://github.com/rjrudin/marklogic-camel-demo , Java XML ( , Java Camel ) - , HTTP Camel, URI - https://github.com/rjrudin/marklogic-camel-demo/blob/master/src/main/java/org/example/util/RunCamel.java#L76. Camel http4 - http://camel.apache.org/http4.html

+5

Source: https://habr.com/ru/post/1649954/


All Articles