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

Claus Ibsen edited comment on CAMEL-17728 at 3/1/22, 4:28 PM:
--------------------------------------------------------------

The documentation is showing a spring xml legacy style (eg <bean>) that is 
outdated, it should be removed


was (Author: davsclaus):
The documentation is showing a spring xml legacy style (eg <bean>)

> 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: Bug
>          Components: camel-quartz
>    Affects Versions: 3.16.0
>            Reporter: Jiri Ondrusek
>            Priority: Major
>
> 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