When you declare an extern type, you use the @Extern attribute to declare the actual type and a serializer for that type. There are examples of this in the source code. It isn't hard at all.

Sent from my iPhone

On Jul 10, 2009, at 9:33 PM, Niclas Hedhman <[email protected]> wrote:

On Sat, Jul 11, 2009 at 12:18 AM, Manoj Ganesan<[email protected] > wrote:

How do I manage to achieve passing arbitrary objects? In case of a
distributed hashtable, which doesn't care about the type of data being stored, any kind of objects should be able to be passed through to the
server. Is there a way to do this in the current setup?

I am by no means an expert, but I think you can create a custom type
that carries a byte array, and on each platform have a serializer that
understand your custom Etch type and how to go from byte[] to the
'stored' object in the hashtable. It could become problematic to make
such type platform independent, but I assume that this is not of your
concern.

Cheers
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

Reply via email to