Hi Oh btw I forgot that camel-quartz2-starter has Spring Boot auto configuration which allows to configure the component options in the application.properites / yml file and as well from ENV overrides that SB support. So you can maybe configure it from ENV with
{ "name": "camel.component.quartz2.properties-file", "type": "java.lang.String", "description": "File name of the properties to load from the classpath", "sourceType": "org.apache.camel.component.quartz2.springboot.QuartzComponentConfiguration" }, camel.component.quartz2.properties-file=file:XXXX On Mon, Jan 23, 2017 at 9:36 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: > 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 -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2