Search

Chapter 4. Running The Tutorial GUI

download PDF
The GUI is run by:
  • Changing to the ${JBOSSCACHE_HOME}/tutorial directory (e.g.,cd ${JBOSSCACHE_HOME}/tutorial)
  • And then running the ant script (e.g., ant run)
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 org.jboss.cache.Cache interface, used by the GUI instance.
  • root: a reference to the root org.jboss.cache.Node instance for the above cache.
  • transactionManager: a reference to the registered javax.transaction.TransactionManager instance.
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 GUI as a replicated tutorial, 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.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.