## Before you begin

### Prerequisites

Before you run the Java example, ensure that you have the required version of Apache Ant and of the Java Development Kit installed. See Java and Compiler Requirements in the Installing FUSE™ Message Broker for details.

### Example location

You can use Ant to run the example code from the root of the `example` folder in the FUSE Message Broker. installation directory. Each Ant target is explained below.

The Java source code is is contained in the `src` folder.

### What happens

By default, the example allows you to do the following:

1. Run an embedded instance of FUSE Message Broker.

2. Run a consumer that waits to consume a predefined number of messages from a queue and then closes the connection.

3. Run a producer that sends the messages to the queue.