[infinispan-dev] @Marshallable as an option for end user externalizers?
Manik Surtani
manik at jboss.org
Thu Mar 17 10:22:12 EDT 2011
On 17 Mar 2011, at 14:16, David M. Lloyd wrote:
>>
>> Ah I see what you mean. Initially I thought you'd only need to
>> register the externaliser when you first encounter a new type (i.e.,
>> when a user defined type is first encountered with a put()), but this
>> may not be the case since on the remote node it may see the a new
>> magic number which may not be registered, and then you have a
>> problem.
>
> Marshalling will send Externalizers across the wire too, so the
> receiving side need not know about it in advance. The sending side can
> then do this kind of discovery safely. In addition, JBMAR already has
> the @org.jboss.marshalling.Externalize annotation which does just this.
>
> Unless you're talking about your own mechanism, anyway. Just thought
> I'd throw this bit out there.
Sweet. I think we can make this work then - even reusing JBM's annotations.
--
Manik Surtani
manik at jboss.org
twitter.com/maniksurtani
Lead, Infinispan
http://www.infinispan.org
More information about the infinispan-dev
mailing list