Hi You may need to name the bean quartz2 or what the name you use in your Camel routes, eg
@Bean(nane = "quartz2") Spring Boot will use the method name as the component name by default, so you can also name it @Bean QuartzComponent quartz2() { ... } but that would be a bit odd to do, so its likely better to use @Bean(name = "quartz2"), or it may be enough to do @Bean("quartz2") On Mon, Jan 23, 2017 at 7:44 PM, Deepak kumar <dksahoo...@gmail.com> wrote: > Hi Claus, > I tried by making a QuartzComponent using java config. But this one is not > getting detected in my camel-quartz component. > > @Bean > //@Produce(uri="quartz2://myscheduler2?cron=0+0/2+0+?+*+MON-SAT") > public QuartzComponent quartzComponent(){ > System.out.println("QuartzComponent.."); > QuartzComponent quartz=new QuartzComponent(); > //quartz.setPropertiesFile("file:D://quartz.properties"); > return quartz; > } > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-quartz2-scheduler-external-quartz-properties-file-tp5793004p5793021.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2