On another note - calling a second EntryProcessor from inside the first EntryProcessor could lead to problems unless you are very careful to avoid thread starvation and cache/service re-entrancy.
InvocableMap.EntryProcessor original = ... create the object you want to test ... ConfigurablePofContext pofContext = new ConfigurablePofContext("... name of your pof config file..."); Binary binary = ExternalizableHelper.toBinary(original, pofContext); InvocableMap.EntryProcessor result = ExternalizableHelper.fromBinary(binary, pofContext); ... do some assertions to make sure the "result" matches the "original" ...
Hope this helps!
BinaryEntry binaryParent=((BinaryEntry)e); Map childCache = binaryParent.getContext().getBackingMap("CHILD_CACHE"); // perform the steps on child objects are you were doing in second entry processor
but for some reason ctxMapBack is always null. Both cache's use the same distributed-scheme, is there something else I need to check?
BinaryEntry binTrade = (BinaryEntry) entry; BackingMapManagerContext ctx = binTrade.getContext(); BackingMapContext ctxMapBack = ctx.getBackingMapContext(CacheConstants.PCACHE);