I'm having trouble to understand how to use Quartz with `QuartzInitializerListener`.

First I declare that listener in deployment descriptor. But then, how to I add my jobs? Taking a look at [QuartzInitializerListener implementation](http://www.java2s.com/Open-Source/Java-Document/Project-Management/quartz/org/quartz/ee/servlet/QuartzInitializerListener.java.htm), I see it creates the `SchedulerFactory` and `Scheduler`, but I don't see any way to add jobs. The factory receives a [configuration file](http://www.quartz-scheduler.org/docs/configuration/ConfigMain.html), but again there's nothing related to the jobs there.

I only found very simples examples from my searches, all about instantiating everything in main method.

Can anyone point me to a more real example? I'm using JBoss 5 if that matters. Thanks.