camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vivekrao001 <vivekrao...@gmail.com>
Subject Re: Camel JCR examples?
Date Mon, 02 Jun 2014 20:26:54 GMT
Hi,

Thanks for the quick reply,

I was able to create repository in spring config. but was not able to copy
the file from repository to local file. could you please look at the below
code.

------
 <bean id="repository"
class="org.apache.jackrabbit.rmi.repository.URLRemoteRepository">
         <constructor-arg
value="http://localhost:8080/jackrabbit-webapp-2.6.0/repository"/>
    </bean>

----

 ApplicationContext Appcontext = new
ClassPathXmlApplicationContext("springContext.xml");  
 CamelContext context = SpringCamelContext.springCamelContext(Appcontext);   
    context.addRoutes(new RouteBuilder()
      {
      public void configure()
        {
        // Set up the route — from the intput directory, to
        //  the output directory, with no other processing
      
    	  from
("file:jcr://admin:admin@repository/default/b").to("file:\\tmp\\out");
        }
      });
    //
    // Start the Camel route
    context.start();



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JCR-examples-tp5746406p5751837.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message