camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Grzybek <gr.grzy...@gmail.com>
Subject Re: Camel JCR examples?
Date Thu, 16 Jul 2015 09:01:15 GMT
Hello

For general camel-jcr usage, see http://camel.apache.org/jcr.html

You can also check examples/tests in Camel's source code:
https://github.com/apache/camel/tree/camel-2.15.2/components/camel-jcr/src/test/java/org/apache/camel/component/jcr

regards
Grzegorz Grzybek

2015-07-16 10:45 GMT+02:00 David Parker <dfparker@gmail.com>:

> Hi Gregor & team camel-jcr,
>
> on a related note, do you have a pointer for resolving a jcr via webdav?
>
> I am working with the camel-jcr component to connect to CQ5 (Jackrabbit)
> instance. It promises to be useful...
>
> I suspect my JNDI / JCR Repository definition is wrong or incomplete but I
> have not better guidance.
>
> May I ask you to provide a pointer to guide me toward a successful
> camel-jcr / jackrabbit connection.
>
> I am struggling with camel access via webdav.
>
> I use an XML DSL and the bean registry attempts below.
>
> POM
> ....
>     <dependency>
>       <groupId>org.apache.jackrabbit</groupId>
>       <artifactId>jackrabbit-core</artifactId>
>       <version>2.10.1</version>
>     </dependency>
>      <dependency>
>       <groupId>org.apache.camel</groupId>
>       <artifactId>camel-script</artifactId>
> <version>${camel.alt-version}</version>
>     </dependency>
>      <dependency>
>       <groupId>org.beanshell</groupId>
>       <artifactId>bsh</artifactId>
>       <version>2.0b5</version>
>     </dependency>
>
>
>      <dependency>
>       <groupId>org.apache.jackrabbit</groupId>
>       <artifactId>jackrabbit-jcr-rmi</artifactId>
>       <version>2.10.1</version>
>     </dependency>
>
> <dependency>    <groupId>org.apache.jackrabbit</groupId>
>     <artifactId>jackrabbit-jcr2dav</artifactId>
>       <version>2.10.1</version>
> </dependency>
> <dependency>
>     <groupId>org.apache.jackrabbit</groupId>
>     <artifactId>jackrabbit-webdav</artifactId>
>       <version>2.10.1</version>
> </dependency>
>
> ..
>   <route id="send-data-to-jcr"> <from
> uri="file:src/data?antInclude=*.csv&amp;noop=true&amp;delay=500"/>
>
> <setHeader
>
> headerName="jcr:primaryType"><constant>nt:unstructured</constant</setHeader>
> <setProperty
>
> propertyName="JcrConstants.JCR_NODE_NAME"><constant>bar</constant></setProperty>
> <setProperty
> propertyName="my.contents.property"><simple>${body}</simple></setProperty>
> <to uri="jcr://admin:admin@LOCALJCR/var/test" />
>
>     </route>
> ...
>
> -- AND these bean registry attempts --
> <bean id="repository"
> class="org.apache.jackrabbit.rmi.repository.URLRemoteRepository">
>     <constructor-arg value="rmi://localhost:1099/crx" />
> </bean>
>
> -- OR --
>
> <bean id="LOCALJCR"
> class="org.apache.jackrabbit.rmi.repository.RMIRemoteRepository">
>     <constructor-arg value="rmi://localhost:1099/crx" />
> </bean>
>
> -- OR --
>
> <bean id="LOCALJCR"
> class="org.apache.jackrabbit.rmi.repository.JNDIRemoteRepository">
> <constructor-arg value="jndi://crx?
> org.apache.jackrabbit.repository.jndi.name
>
> =crx&amp;java.naming.factory.initial=com.day.util.jndi.provider.MemoryInitialContextFactory&amp;java.naming.provider.url=
> http://jcr.day.com" />
>
> -- OR --
>
> <bean id="LOCALJCR"
> class="org.apache.jackrabbit.rmi.repository.URLRemoteRepository">
> <constructor-arg value="rmi://localhost:1099"/>
>
>
>    -
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message