Hi João,

Does your custom ActionScript collection class use [RemoteClass(alias="...")] 
metadata to map to your corresponding custom Java collection class on the 
server?

Using [RemoteClass] requires that you have a hard dependency on this custom AS 
collection class in your app in order for mxmlc to generate the necessary 
registerClassAlias call during Flex app init; if you don't have an explicit 
variable of this type in your app, just create a dummy variable during startup 
that is thrown away and gc'ed and it should do the trick.

Best,
Seth

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Joao 
Kreuzberg
Sent: Monday, November 24, 2008 12:37 PM
To: [email protected]
Subject: [flexcoders] [CUSTOM COLLECTION SERIALIZATION - BLAZEDS]

Hello  guys,

I have a custom collection in Java and I'd like to bind it to my custom 
collection in Flex using AMF.

I'm using BlazeDS.

I implemented IExternalizable and Externalizable both ends but I still always 
get back a ArrayList instead of my custom implementation.

The objects inside of the collection are bound correctly, only the collection 
that remains.

Any hints about this?

Regards,

João

Reply via email to