4 Replies Latest reply on Jul 29, 2008 12:34 PM by arjan tijms

    Controlling the quartz scheduler from EJB with the quartz RA

    henk de boer Master


      In this topic (http://www.jboss.com/index.html?module=bb&op=viewtopic&t=135323) I read the following:

      For the inbound adapter there is an interaction from EIS to AS , the messages are utilized by the endpoints which are of type MDB . Quartz is of this type , it is basically the inbound type adapter .

      I wonder, if quartz is only an inbound type adapter, does this mean it's impossible to programmatically create new jobs/triggers or to query the quartz scheduler for the currently scheduled jobs?

      In regular quartz, I can do something like this:

      SchedulerFactory factory = (SchedulerFactory)servletContext.getAttribute(QuartzInitializerListener.QUARTZ_FACTORY_KEY);
      Scheduler scheduler = factory.getScheduler();
      for ( String jobGroupName : scheduler.getJobGroupNames() ) {
       // ...

      If I needed such kinds of interactions from my code to quartz from within an EJB bean, how would I go about doing that using the quartz RA?