[ 
https://issues.apache.org/jira/browse/CAMEL-17728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17499983#comment-17499983
 ] 

Jiri Ondrusek commented on CAMEL-17728:
---------------------------------------

[~davsclaus] Just another fact. It is possible to set the property via 
endpoint. My route is
{code}
        // delayed startup
        from("quartz://delayed/1 * * * * ?startDelayedSeconds=60")
                .setBody(constant("Hello Camel Quarkus Quartz From Future"))
                .to("seda:quartz-delay-result");
{code}
But the it is triggered instantly. So I still think that this functionality is 
not working (I wasn't able to find a code which will read the property)....
 

> Camel-quartz: It is not possible to use "startDelayedSeconds" property as is 
> in the documentation
> -------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-17728
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17728
>             Project: Camel
>          Issue Type: Task
>          Components: camel-quartz
>    Affects Versions: 3.15.0
>            Reporter: Jiri Ondrusek
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 3.16.0
>
>
> According to the 
> [documentation|https://camel.apache.org/components/3.15.x/quartz-component.html#_starting_the_quartz_scheduler]
>   it should be possible to set property `startDelayedSeconds` into Quartz 
> component.
>  If I use:
> {code:xml}
> <bean id="quartz" class="org.apache.camel.component.quartz.QuartzComponent">
> <property name="scheduler" ref="scheduler"/>
> <property name="startDelayedSeconds" value="50"/>
> </bean>
> {code}
> I'm getting:
> {code:java}
> Caused by: org.apache.camel.PropertyBindingException: Error binding property 
> (camel.component.quartzDelayed.startDelayedSeconds=60) with name: 
> startDelayedSeconds on bean: 
> org.apache.camel.component.quartz.QuartzComponent@661e1399 with value: 60
>     at 
> org.apache.camel.main.MainHelper.setPropertiesOnTarget(MainHelper.java:326)
> ... {code}
>  
> Property should work or should be removed from the doc.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to