Once you obtain the scheduler, then you can schedule your jobs.
To schedule a job, you need to define the JobDetail and Trigger. For
JobDetail(), I use JMXInvokerJob, which is a Job implementation as a JMX MBean.

That tells the scheduler, which is an instance of QuartzService (and is an
MBean), to invoke the
processOracle() method, implemented in nusa:service=DBManager MBean,
using a cron expression.

What Quartz does in our scenario is just scheduling. The details
and nature of the job are "federated" to another MBean, called
nusa:service=DBManager.

Using Hibernate in JBoss

Hibernate is an object/relational persistence mapping, and has
more to do with the data layer. Just like Quartz, it provides an MBean
(called HibernateService). This MBean is responsible for constructing a
Hibernate SessionFactory and exposing it through JNDI.

In our scenario, the Hibernate service is defined like this in our jboss-service.xml file:

Although Hibernate is not a Java-XML data-binding framework--as opposed to Castor,
JAXB, XMLBeans, etc.--it provides the functionality to generate XML output.
This is handled by the Databinder.toGenericXML() or
Databinder.toXML() methods.
The structure of the XML generated is different.