Question: I would like know what is the difference between the Quartz Scheduler and JMS, and in what situations is better to do the use of the tools...

Answer: 
They are completely different. One is an event scheduler, the other is a messaging / queuing technology.
[Quartz](http://www.quartz-scheduler.org/) is a library/product for scheduling jobs (just as you cronjobs on most UNIX systems). You can find a little turorial and example of using Quartz [here](http://www.ibm.com/developerworks/java/library/j-quartz/).

On the other hand:

> 
> The Java Message Service (JMS) API is a Java Message Oriented
>  Middleware (MOM) API [1](http://www.quartz-scheduler.org/) for sending messages between two or more
>  clients
> 
> 
>