title: How to use Quartz with QuartzInitializerListener?
body: <p>I'm having trouble to understand how to use Quartz with <code>QuartzInitializerListener</code>.</p>
  
  <p>First I declare that listener in deployment descriptor. But then, how to I add my jobs? Taking a look at <a href="http://www.java2s.com/Open-Source/Java-Document/Project-Management/quartz/org/quartz/ee/servlet/QuartzInitializerListener.java.htm" rel="noreferrer">QuartzInitializerListener implementation</a>, I see it creates the <code>SchedulerFactory</code> and <code>Scheduler</code>, but I don't see any way to add jobs. The factory receives a <a href="http://www.quartz-scheduler.org/docs/configuration/ConfigMain.html" rel="noreferrer">configuration file</a>, but again there's nothing related to the jobs there.</p>
  
  <p>I only found very simples examples from my searches, all about instantiating everything in main method.</p>
  
  <p>Can anyone point me to a more real example? I'm using JBoss 5 if that matters. Thanks.</p>