Having struggled for some time to get JBC 30 running in a cluster on JBossAS 50, I have put together a small Hello World type program to show how it is done. It may be accessed here: http://www.opendoors.fr/dummies/dummies.zip. The UserGuide does a very good job of explaining the general principals of the cache, but it does not give detailed code examples. The Unit Tests are just that: they exhaustively tests every imaginable feature, but in an isolated way, so they are not a basis to start developping on the server. So hopefully this program might fill a gap. (If anyone wants to put it somewhere else they are welcome, as the present site is not ideal).
Good sample, thanks.