[infinispan-dev] distributed execution - invoking commands on self

Vladimir Blagojevic vblagoje at redhat.com
Fri Apr 15 09:23:54 EDT 2011


On 11-04-15 4:34 AM, Galder Zamarreño wrote:
> On Apr 12, 2011, at 7:45 PM, Vladimir Blagojevic wrote:
>
>> Yeah, it would be too strict to require Callable to be Cloneable so I
>> would opt out to serialization/deserialization as a clone method.
>>
>> Galder, do out have a recommended mechanism for this in your marshalers?
> Not really. I think you should marshall or clone it before executing operations against it.
>
> For marshalling data, you just have to see what is done in the lazy deserialization code, just get hold of the VersionAwareMarshaller and marshall it.
How do I get a hold of it? I found Marshaller registered in 
GlobalComponentRegistry but I could not find API to access it. I used a 
regular serialization for cloning and it works ok but I'd definitely 
prefer to use Marshaller.




More information about the infinispan-dev mailing list