You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltaspike.apache.org by gp...@apache.org on 2014/03/28 12:07:49 UTC

svn commit: r1582694 - /deltaspike/site/trunk/content/scheduler.mdtext

Author: gpetracek
Date: Fri Mar 28 11:07:49 2014
New Revision: 1582694

URL: http://svn.apache.org/r1582694
Log:
updated content

Modified:
    deltaspike/site/trunk/content/scheduler.mdtext

Modified: deltaspike/site/trunk/content/scheduler.mdtext
URL: http://svn.apache.org/viewvc/deltaspike/site/trunk/content/scheduler.mdtext?rev=1582694&r1=1582693&r2=1582694&view=diff
==============================================================================
--- deltaspike/site/trunk/content/scheduler.mdtext (original)
+++ deltaspike/site/trunk/content/scheduler.mdtext Fri Mar 28 11:07:49 2014
@@ -93,6 +93,29 @@ Via std. injection like
 
 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).
 
+**Attention**:
+
+With some versions of Weld you have to use
+
+    :::java
+    public class QuartzSchedulerProducer
+    {
+        @Produces
+        @ApplicationScoped
+        protected Scheduler<Job> produceScheduler(Scheduler scheduler)
+        {
+            return scheduler;
+        }
+    }
+
+or with DeltaSpike v0.7+
+
+    <alternatives>
+      <class>org.apache.deltaspike.scheduler.impl.QuartzSchedulerProducer</class>
+    </alternatives>
+
+to use a typed injection-point. Otherwise the deployment will fail.
+
 # Custom Scheduler
 
 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 `org.apache.deltaspike.test.scheduler.custom` for further details.