[seam-commits] Seam SVN: r8547 - in trunk: src/main/org/jboss/seam/async and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Thu Jul 31 07:48:30 EDT 2008
Author: pete.muir at jboss.org
Date: 2008-07-31 07:48:29 -0400 (Thu, 31 Jul 2008)
New Revision: 8547
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Jms.xml
trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java
trunk/src/main/org/jboss/seam/async/QuartzTriggerHandle.java
Log:
JBSEAM-3106
Modified: trunk/doc/Seam_Reference_Guide/en-US/Jms.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Jms.xml 2008-07-31 11:11:35 UTC (rev 8546)
+++ trunk/doc/Seam_Reference_Guide/en-US/Jms.xml 2008-07-31 11:48:29 UTC (rev 8547)
@@ -228,9 +228,11 @@
The Quartz dispatcher (see earlier on how to install it) allows you to use the <literal>@Asynchronous</literal>, <literal>@Duration</literal>, <literal>@Expiration</literal>, and <literal>@IntervalDuration</literal> annotations as above. But it has some powerful additional features. The Quartz dispatcher supports three new annotations.
</para>
- <para>The <literal>@FinalExpiration</literal> annotation specifies an end date for the recurring task.</para>
+ <para>The <literal>@FinalExpiration</literal> annotation specifies an end date for the recurring task. Note that you can inject the <code>QuartzTriggerHandle</code>.</para>
<programlisting role="JAVA"><![CDATA[
+ @In QuartzTriggerHandle timer;
+
// Defines the method in the "processor" component
@Asynchronous
public QuartzTriggerHandle schedulePayment(@Expiration Date when,
Modified: trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java
===================================================================
--- trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java 2008-07-31 11:11:35 UTC (rev 8546)
+++ trunk/src/main/org/jboss/seam/async/QuartzDispatcher.java 2008-07-31 11:48:29 UTC (rev 8547)
@@ -237,7 +237,7 @@
{
JobDataMap dataMap = context.getJobDetail().getJobDataMap();
async = (Asynchronous)dataMap.get("async");
- async.execute(null);
+ async.execute(new QuartzTriggerHandle(context.getTrigger().getName()));
}
}
Modified: trunk/src/main/org/jboss/seam/async/QuartzTriggerHandle.java
===================================================================
--- trunk/src/main/org/jboss/seam/async/QuartzTriggerHandle.java 2008-07-31 11:11:35 UTC (rev 8546)
+++ trunk/src/main/org/jboss/seam/async/QuartzTriggerHandle.java 2008-07-31 11:48:29 UTC (rev 8547)
@@ -22,7 +22,6 @@
public QuartzTriggerHandle(String triggerName)
{
this.triggerName = triggerName;
- this.scheduler = QuartzDispatcher.instance().getScheduler();
}
public void cancel() throws SchedulerException
More information about the seam-commits
mailing list