Neo4jPage edited by stephen samuelChanges (1)
Full ContentCamel Neo4j componentAvailable as of Camel 2.11 The neo4j: component allows you to treat Neo4j as a camel producer endpoint. This means you can use this component in to() calls but not from() calls. This component is backed by the Spring Data Neo4j Library.
Maven users will need to add the following dependency to their pom.xml for this component: <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-neo4j</artifactId> <version>x.x.x</version> <!-- use the same version as your Camel core version --> </dependency>
For REMOVE_NODE:
For CREATE_RELATIONSHIP:
For REMOVE_RELATIONSHIP:
SamplesIf you wanted to insert a new empty node every 1 seconds
from("timer://foo?period=1000").to("neo4j:http://localhost:7474/data")
If you wanted to delete a specific node specified by a filename, eg a file of 100 would delete node 100. from("file:/var/data").process(new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.getIn().setBody(exchange.getIn().getHeader("CamelFileName")); } }).to("neo4j:http://localhost:7474/data")
Change Notification Preferences
View Online
|
View Changes
|
Add Comment
|
- [CONF] Apache Camel > Neo4j confluence
- [CONF] Apache Camel > Neo4j confluence
- [CONF] Apache Camel > Neo4j confluence
- [CONF] Apache Camel > Neo4j confluence