[flexcoders] RemoteClass Metadata

2010-04-07 Thread Jake Churchill
I am working on a Flex/.NET project using webOrb and we are going to use
webOrb to auto-generate the value objects but the packaging is quite
different between the server and the client.  I want to use the RemoteClass
aliasing in Flex but I'm not sure about the packaging differences.  My
question is if the server's bean is packaged like this:
com.domain.app.beans.MyObject, can I put the VO in
com.domain.differentAppName.vo.MyObject?  Or do I HAVE to put it at
com.domain.app.beans.MyObject in the Flex project as well?

Thanks!

-Jake


Re: [flexcoders] RemoteClass Metadata

2010-04-07 Thread Oleg Sivokon
AFAIK alias is just a string, maybe there are some restrictions on syntax
(like only alphanums + .:$_), but that's about it.
If you look at how ArrayCollection is aliased, you'll see it's alias is
different from that class' full name.
I'd rather go for registerClassAlias then [RemoteClass] meta - this is a
very tiny optimization, but at least you'd won 3 lines of code per class ;)

Best.

Oleg