JBoss.org Community Documentation

- Prev
- Next

## 6. Running The Demo GUI

The demo is run by calling the ant script (via the driver) with the `run.demo` target. E.g.,

`ant run.demo`

This will cause a GUI window to appear, giving you a tree view of the cache in the top pane and a BeanShell view of the JVM in the lower pane.

The BeanShell view is preset with the following variables:

- `cache` - a reference to the POJO Cache interface, used by the GUI instance.
- `transactionManager` - a reference to the registered transaction manager.

The references made available to the BeanShell window point to the same cache instance used by the tree view in the GUI above.

To run the demo as a replicated demo, it is useful to start another command line window and run the ant script again as you did above. Now you will have two cache instances running in two separate GUIs, replicating state to each other.

- Prev5. Example POJOs
- Top of page
- Front page
- Next7. Tutorials