1
我試圖用石英InterruptableJob#execute
方法與自定義ServiceLocator
中的EJB,但是,我得到以下異常:找到一個石英JOB內的EJB
org.quartz.JobExecutionException: java.lang.ClassCastException: Cannot cast $Proxy450 to com.test.service.TestService [See nested exception: java.lang.ClassCastException: Cannot cast $Proxy450 to com.test.service.TestService]
at com.test.job.TestJob.execute(TestJob.java:107) [ecm-ejb.jar:]
at org.quartz.core.JobRunShell.run(JobRunShell.java:203) [quartz-1.5.2.jar:1.5.2]
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) [quartz-1.5.2.jar:1.5.2]
有什麼事都做EJB和Quartz一起玩?
容器:JBoss AS 7.1