You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by bu...@apache.org on 2014/03/28 12:09:13 UTC
svn commit: r904038 - in /websites/staging/deltaspike/trunk/content: ./
scheduler.html
Author: buildbot
Date: Fri Mar 28 11:09:12 2014
New Revision: 904038
Log:
Staging update by buildbot for deltaspike
Modified:
websites/staging/deltaspike/trunk/content/ (props changed)
websites/staging/deltaspike/trunk/content/scheduler.html
Propchange: websites/staging/deltaspike/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Fri Mar 28 11:09:12 2014
@@ -1 +1 @@
-1580897
+1582694
Modified: websites/staging/deltaspike/trunk/content/scheduler.html
==============================================================================
--- websites/staging/deltaspike/trunk/content/scheduler.html (original)
+++ websites/staging/deltaspike/trunk/content/scheduler.html Fri Mar 28 11:09:12 2014
@@ -152,6 +152,28 @@ That can be controlled via <code>@Schedu
<p>it's possible to manually start/stop the scheduler, pause/resume/interrupt/check scheduled jobs, register jobs manually or start a job once (without registering it permanently).</p>
+<p><strong>Attention</strong>:</p>
+<p>With some versions of Weld you have to use</p>
+<div class="codehilite"><pre><span class="kd">public</span> <span class="kd">class</span> <span class="nc">QuartzSchedulerProducer</span>
+<span class="o">{</span>
+ <span class="nd">@Produces</span>
+ <span class="nd">@ApplicationScoped</span>
+ <span class="kd">protected</span> <span class="n">Scheduler</span><span class="o"><</span><span class="n">Job</span><span class="o">></span> <span class="n">produceScheduler</span><span class="o">(</span><span class="n">Scheduler</span> <span class="n">scheduler</span><span class="o">)</span>
+ <span class="o">{</span>
+ <span class="k">return</span> <span class="n">scheduler</span><span class="o">;</span>
+ <span class="o">}</span>
+<span class="o">}</span>
+</pre></div>
+
+
+<p>or with DeltaSpike v0.7+</p>
+<div class="codehilite"><pre><span class="nt"><alternatives></span>
+ <span class="nt"><class></span>org.apache.deltaspike.scheduler.impl.QuartzSchedulerProducer<span class="nt"></class></span>
+<span class="nt"></alternatives></span>
+</pre></div>
+
+
+<p>to use a typed injection-point. Otherwise the deployment will fail.</p>
<h1 id="custom-scheduler">Custom Scheduler</h1>
<p>It's possible to replace the default integration with Quartz. Any other scheduler which supports cron-expressions for job-classes can be used. Please have a look at <code>org.apache.deltaspike.test.scheduler.custom</code> for further details.</p>
</div>