Is there a way to use "Store to cache" to store java objects, that has been produced by another custom assertion and store in policy context variable?
Any help would be highly appreciated.
you should serialize java object into XML or JSON, (read JAXRS, or JAXB), and then you can choose the content-type as per the format.
You should be able to copy the value of the context variable containing your (presumably JSON, or otherwise serialized) Java object into a message type context variable, and then target that message type context variable with the store in cache assertion.
Thanks for your reply. Let's say I want to store serialised java object then while configuring context variable I will set Data Type to be "Message" and Content-Type? what should be content-type? I see 4 options as follows:
Retrieving data ...