I've just pushed another sample to github. This sample shows how to attach a listener to the grid which watches transactions involved a set of maps. Any eviction events in those maps are 'noticed' and an eviction event is inserted in to a map thats basically used like a simple queue. I wrote a client side listener that can be attached to a client grid reference. This listener polls the server side grid looking for these events and returns them to the client.
The particular use case that prompted this sample was a customer using the grid to store application sessions and they needed a way for applications to be notified when the grid evicted their sessions. They wanted EVERY application JVM to see EVERY eviction. This is important to realize. Every eviction event will be processed by every application JVM instance. If we just needed the eviction event to be handled by exactly one application JVM then I'd write it using the getNextKey function in WXS.
The test package has sample objectgrid.xml and deployment.xml files as well as a test case showing how to invoke the client to test it.
