JBoss.org Community Documentation

5. Running The Demo GUI

The demo is run by calling the ant script 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 Cache interface, used by the GUI instance.

  • root - a reference to the root Node instance for the above cache.

  • 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.