ArangoDb

Since Camel 3.5.0-SNAPSHOT

Only producer is supported

The ArangoDb component is a ArangoDb client that uses the arango java driver to perform queries on collections and graphs in the ArangoDb database.

Maven users will need to add the following dependency to their pom.xml for this component:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-arangodb</artifactId>
    <version>x.x.x</version>
  <!-- use the same version as your Camel core version -->
</dependency>

URI format

arangodb:database[?options]

ArangoDB options

The ArangoDb component supports 9 options, which are listed below.

Name Description Default Type

collection (producer)

collection in the database

String

configuration (producer)

Component configuration

ArangoDbConfiguration

host (producer)

host if host and/or port different from default

String

lazyStartProducer (producer)

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

boolean

operation (producer)

operation to perform. The value can be one of: SAVE_DOCUMENT, FIND_DOCUMENT_BY_KEY, UPDATE_DOCUMENT, DELETE_DOCUMENT, AQL_QUERY

ArangoDbOperation

port (producer)

port if host and/or port different from default

int

basicPropertyBinding (advanced)

Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities

false

boolean

password (security)

password if user and/or password different from default

String

user (security)

user if user and/or password different from default

String

The ArangoDb endpoint is configured using URI syntax:

arangodb:database

with the following path and query parameters:

Path Parameters (1 parameters):

Name Description Default Type

database

Required database name

String

Query Parameters (9 parameters):

Name Description Default Type

collection (producer)

collection in the database

String

host (producer)

host if host and/or port different from default

String

lazyStartProducer (producer)

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

boolean

operation (producer)

operation to perform. The value can be one of: SAVE_DOCUMENT, FIND_DOCUMENT_BY_KEY, UPDATE_DOCUMENT, DELETE_DOCUMENT, AQL_QUERY

ArangoDbOperation

port (producer)

port if host and/or port different from default

int

basicPropertyBinding (advanced)

Whether the endpoint should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities

false

boolean

synchronous (advanced)

Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported).

false

boolean

password (security)

password if user and/or password different from default

String

user (security)

user if user and/or password different from default

String

Spring Boot Auto-Configuration

When using arangodb with Spring Boot make sure to use the following Maven dependency to have support for auto configuration:

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-arangodb-starter</artifactId>
  <version>x.x.x</version>
  <!-- use the same version as your Camel core version -->
</dependency>

The component supports 10 options, which are listed below.

Name Description Default Type

camel.component.arangodb.basic-property-binding

Whether the component should use basic property binding (Camel 2.x) or the newer property binding with additional capabilities

false

Boolean

camel.component.arangodb.collection

collection in the database

String

camel.component.arangodb.configuration

Component configuration. The option is a org.apache.camel.component.arangodb.ArangoDbConfiguration type.

String

camel.component.arangodb.enabled

Whether to enable auto configuration of the arangodb component. This is enabled by default.

Boolean

camel.component.arangodb.host

host if host and/or port different from default

String

camel.component.arangodb.lazy-start-producer

Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel’s routing error handlers. Beware that when the first message is processed then creating and starting the producer may take a little time and prolong the total processing time of the processing.

false

Boolean

camel.component.arangodb.operation

operation to perform

ArangoDbOperation

camel.component.arangodb.password

password if user and/or password different from default

String

camel.component.arangodb.port

port if host and/or port different from default

Integer

camel.component.arangodb.user

user if user and/or password different from default

String