camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: camel quartz2 scheduler external quartz.properties file
Date Mon, 23 Jan 2017 20:36:50 GMT
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 <dksahoo551@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

Mime
View raw message