This content has been marked as final.
Show 3 replies
-
1. Re: QuartzTriggerHandle Running
www.supernovasoftware.com Apr 25, 2008 4:29 PM (in response to tom_goring)I use the following as a hack. I will replace this when the Seam API changes. I believe there is a JIRA for this, but I am not sure.
import java.lang.reflect.Field; import org.jboss.seam.async.QuartzTriggerHandle; public class QuartzUtil { public static String getTriggerName(QuartzTriggerHandle handle) { Field field; String value = null; try { field = handle.getClass().getDeclaredField("triggerName"); field.setAccessible(true); value = (String) field.get(handle); } catch (SecurityException e) { e.printStackTrace(); } catch (NoSuchFieldException e) { e.printStackTrace(); } catch (IllegalArgumentException e) { e.printStackTrace(); } catch (IllegalAccessException e) { e.printStackTrace(); } return value; } }
-
2. Re: QuartzTriggerHandle Running
tom_goring Apr 25, 2008 6:13 PM (in response to tom_goring)Cheers for that....
Do you know the API to tell if the Job is running?
Thanks
tom
-
3. Re: QuartzTriggerHandle Running
www.supernovasoftware.com Apr 25, 2008 7:07 PM (in response to tom_goring)I do not. When you find it please post it here.