I'm want to use main to start a polling service... presently I'm using
CamelContext and connecting to a database for that i'm using the followint
method to create camelcontext

      private CamelContext createCamelContext() throws Exception {
                // TODO Auto-generated method stub
                applicationContext = new
ClassPathXmlApplicationContext("META-INF/spring/camel-context.xml");
        return SpringCamelContext.springCamelContext(applicationContext);
        }


But when I use main.run() to start the service how to set this
ApplicationContext. Or is there any other way of running the polling service
indefinitely for the route mentioned in the above posts.

Thanks in advance

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

Reply via email to