Just use the Main class from camel-spring.
On Sun, May 29, 2011 at 3:21 PM, sumatheja <[email protected]> wrote: > > 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. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com CamelOne 2011: http://fusesource.com/camelone2011/ Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
