## Running the broker

### Running an embedded broker

Embedding a broker involves deploying an instance of FUSE Message Broker inside a JVM.

| Note
You can also simply run a standalone broker by running the activemq script from the `bin` directory under the FUSE Message Broker installation directory.

To run the embedded broker:

1. In a new command window, change directory to the `example` directory in the FUSE Message Broker installation directory.

2. Type the following:

   `ant embedBroker`

### The code explained

The embedBroker Ant target points to the `EmbeddedBroker.java` class, which creates a new broker as shown in Example 3.1.