Just began using commons-jcs-2.2-bin
Was able to store objects of arbitrary complexity in default and named regions successfully (prior to using groups).
In attempting to use groups I can see (using JCSAdmin.jsp) that my keys are all written - but even when putting String values out for all my keys e.g.
statesFIPSByStateCodeCache.putInGroup(state.getCode(), "stateFIPSByStateCode", state.getFipsId());
a subseuqnt get, e.g.
String fipsId = (String) statesFIPSByStateCodeCache.getFromGroup(stateCode, "stateFIPSByStateCode");
returns null.
JCSAdmin.jsp confirms no value is stored for these keys, e.g.:
Item for key [[GAN: groupId=[groupId=jurisdictions, stateFIPSByStateCode], attrName=WA]] in region [jurisdictions]
Region Detail | All Regions
null
Please help!
The issue seems to be a lack of support in the JCSAdmin.jsp version I was using for GroupCacheAccess (I was not able to find the JSP as part of the distributables for the project).
I'm attaching my solution which will identify and get grouped elements and emit their contents on the item "View" page using Gson to pretty print the object.