The jcr component allows you to add nodes to a JCR compliant content repository (for example, Apache Jackrabbit).
Maven users will need to add the following dependency to their pom.xml for this component:
The repository element of the URI is used to look up the JCR Repository object in the Camel context registry.
If a message is sent to a JCR producer endpoint:
All message properties are converted to node properties, except for the CamelJcrNodeName property (you can refer to JcrConstants.NODE_NAME in your code), which is used to determine the node name.
The snippet below creates a node named node under the /home/test node in the content repository. One additional attribute is added to the node as well: my.contents.property which will contain the body of the message being sent.