0 Replies Latest reply on Sep 19, 2011 9:05 AM by Peter Rader

    Accessing Quartz Job's from stateles EJB

    Peter Rader Newbie

      Hi,

       

      1. we generate generated emails by (WAR).

       

      2. verify them using a stateles EJB and

       

      3. send them each hour (Quartz-SAR).

       

       

      My EJB is stateles, so i need to collect the mails on the StatefulJob.

       

      my Job:

       

      @ResourceAdapter("quartz-ra.rar")

      @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = "cronTrigger", propertyValue = "0 * * * * ?") }

       

      )

       

      public class RegistrationEmails extends ArrayList<RegistrationTransferObject>

              implements StatefulJob { ... }

       

      and my EJB:

       

      @EJB(beanName="RegistrationEmails")
      private List<RegistrationTransferObject> registration;