JBoss.org Community Documentation
For this tutorial, start two instance of the demo GUI. In this tutorial, we will:
joe = new Person();
joe.setName("Joe Black");
joe.setAge(31);
addr = new Address();
addr.setCity("Sunnyvale");
addr.setStreet("123 Albert Ave");
addr.setZip(94086);
joe.setAddress(addr);
cache.attach("pojo/joe", joe);
joe.setAge(41);
joe = cache.find("pojo/joe");
mary = new Person();
mary.setName("Mary White");
mary.setAge(30);
mary.setAddress(joe.getAddress());
cache.attach("pojo/mary", mary);
mary.getAddress().setZip(95000);
cache.detach("pojo/joe");
cache.detach("pojo/mary");
joe.setName("Joe White");