Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Some copy editing

JCR Component

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

URI format

...

If a message is sent to a JCR producer endpoint created by this component:

  • a A new node is created in the content repository,
  • all All the message properties of the in IN message will be are transformed to JCR Value instances and added to the new node,
  • the The node's UUID is returned in the out OUT message.

Message properties

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.

Example

The snippet below will create creates a node named node under the /home/test node in the content repository. One additional attribute will be is added to the node as well: my.contents.property which will contain the body of the message being sent.

...