yes. I am only receiving from the PHP source, but then will want to send and receive from FDS/Hibernate. I am thinking that extending the class is a good idea, but i wonder if the sub class RemoteClass tag will then override the super class RemoteClass tag (which is what I would want).

This way I can retrieve the VO from PHP and by reassigning it to the extended class, create the Java link....not sure if this will work...

- Kevin

On May 4, 2007, at 1:32 PM, Peter Farland wrote:


Just to follow on this, note that obviously the last alias will always be used to send instances of the VO. I'm assuming that you're only retrieving VOs from one source and then sending and potentially receiving them to another source.

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Peter Farland
Sent: Friday, May 04, 2007 1:22 PM
To: [email protected]
Subject: RE: [flexcoders] Can a VO have 2 Remote Classes?


I've personally not tried two [RemoteClass] tags on a VO, but if you're not successful in your tests then can you also try the lower level Flash API that mxmlc ends up calling for the [RemoteClass] metadata...

http://livedocs.adobe.com/flex/2/langref/flash/net/ package.html#registerClassAlias()

... just make sure the call to registerClassAlias() occurs before any instances of the relevant VOs are sent or returned (static var initializers are the usual technique here).

Let me know how you go.

Pete




From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Sent: Friday, May 04, 2007 1:07 PM
To: [email protected]
Subject: [flexcoders] Can a VO have 2 Remote Classes?

I have a FDS project which also uses PHP to retrieve VO's from Web
Services. I am wondering if it i possible for a VO on the client
side to be mapped to two RemoteClasses? What I would like is to pull
the data in from a PHP remoting call (AMFPHP) and then save that VO
back to our local database (Hibernate/Java).

From a coding perspective i see three ways to try this.

1) Have two RemoteClass tags (I this possible?)

2) Have one RemoteClass tag and then structure my directories on the
PHP server and the Java servers exactly the same.

3) Create a second VO which simply extends the first VO (with no
additional properties) but contains it's own RemoteClass & Managed tag.

Does anyone know if this will work OR is this a bad idea. The only
other way to achieve this is that I can see is to create two VO's of
different names which hold exactly the same info.

Thanks for the advice.

- Kevin





Reply via email to