deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1582694 - /deltaspike/site/trunk/content/scheduler.mdtext
Date Fri, 28 Mar 2014 11:07:49 GMT
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.



Mime
View raw message