You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

JCR Component

The jcr: component allows you to add nodes to a JCR (JSR-170) compliant content repository (e.g. Apache Jackrabbit ).

URI format

jcr://user:password@repository/path/to/node

Usage

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 producer endpoint created by this component:

  • a new node is created in the content repository
  • all the message properties of the in message will be transformed to JCR Value instances and added to the new node
  • the node's UUID is returned in the out message

Message properties

All message properties are converted to node properties, except for the org.apache.camel.component.jcr.node_name (you can refer to JcrComponent.NODE_NAME in your code), which is used to determine the node name.

  • No labels