JBoss.org Community Documentation
For this tutorial, start two instances of the demo GUI. In this tutorial, we will:
joe = new Person();
joe.setName("Joe Black");
lang = new ArrayList();
lang.add("Spanish");
joe.setLanguages(lang);
cache.attach("pojo/joe", joe);
proxyLang = joe.getLanguages();
proxyLang.add("English");
cache.detach("pojo/joe");
proxyLang.add("French");