All,
I am using a plain-old Java object and Geode PDX to PUT and GET values from
a client app to a Geode region. Thanks to PDX, I don't have to install the
class on the Geode cluster.

In my implementation of the AccessControl interface, I receive the
OperationContext object as part of the pre- and post-authorization
callbacks. I was expecting to receive a PdxInstance object but instead I am
receiving a byte[] object.
In the future, It would be nice to receive a PdxInstance to make the
process much cleaner. For now I have to do this something like this to get
my PdxInstance object:

PdxInputStream pdxIs = new PdxInputStream((byte[])
((KeyValueOperationContext) context).getValue());

 userData = (PdxInstance) DataSerializer.readObject(pdxIs);

-- 
Best regards,
-Guillermo

Reply via email to