Hello, I have found several issues concerning the usage of Quartz but as none was alike mine so I hope the solution to my problem is somewhat imminent.
- added <async:quartz-dispatcher /> to components.xml - copied quartz.jar from jboss\server\default\lib to ear\lib - added quartz.jar as a java module to application.xml
Quartz starts up just fine:
18:58:14,735 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar 18:58:14,751 INFO [QuartzResourceAdapter] start quartz!!! 18:58:14,813 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main 18:58:14,844 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created. 18:58:14,844 INFO [RAMJobStore] RAMJobStore initialized. 18:58:14,844 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 18:58:14,844 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2 18:58:14,844 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
java.lang.ClassCastException: org.jboss.seam.async.ThreadPoolDispatcher_$$_javassist_1 cannot be cast to org.jboss.seam.async.QuartzDispatcher at org.jboss.seam.async.QuartzDispatcher.instance(QuartzDispatcher.java:316)
QuartzTriggerHandle handle = QuartzDispatcher.instance().scheduleTimedEvent("myEvent", new CronSchedule((Long) null, trigger));
Im using Seam 2.0.1 and Jboss 4.2.2 and looking forward to get some help :)
Since the quartz jar is a part of the as (in server lib), there is no need to copy it into the ear.
Take a loook at the payment stuff in the quartz examples on how to call it (@Asynchronous method converting a returned null to the correct handle etc).