the 'initial-delay' attribute may not be used with cron and trigger tasks
<p>I am building few crons to run, one of the cron i need to run after some time the server has started.</p>

<pre><code>&lt;task:scheduled ref="myCron"
            method="processData" cron="0/15 * * * * ?" initial-delay="45000"&gt;&lt;/task:scheduled&gt;
</code></pre>

<p>I need to run this cron at every 15 seconds, which it does. But i need to run this cron after 45 seconds server has started and not immediate.</p>

<p>Below is my xsd,</p>

<pre><code>&lt;beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:task="http://www.springframework.org/schema/task"

    xsi:schemaLocation="
            http://www.springframework.org/schema/beans
            http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
            http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd
            http://www.springframework.org/schema/task
            http://www.springframework.org/schema/task/spring-task-3.2.xsd"
    default-lazy-init="false"&gt;
</code></pre>

<p><strong>Exception</strong></p>

<pre><code>org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: the 'initial-delay' attribute may not be used with cron and trigger tasks
</code></pre>