|
Thanks Robin and Steven. That makes total
sense. I have been approaching my current implementation with a background in
Java and JSPs not in Cold Fusion or even thinking about it by doing what I
would call a poor mans version of web services (xml sans SOAP). I have been
lucky enough to be using the AMF gateway for this. In the end I am left with
the following network architecture: Flex Side Network J2EE
Server --------- ---------- || ---------
------------------- ------ | Command | <=> | Delegate | <=
|| => | Command | <=> | Business Delegate | <=> | EJBs | --------- ---------- || ---------
------------------- ------ By doing this I allow Struts to be a
Command on the server side and can keep my Business Delegate clean of any
HTTPRequest or AMF processing knowledge. I guess the only open question is
would you still pass different Command objects to the Delegate on the Flex side
and have more then one function in the delegate that does processing or would
you keep it as a one to one relationship between Commands and Delegates to
avoid accidental calls of the wrong onResult handler? BTW Once I finally got a grasp on the
basics of Cairngorm and Flex my development has been able to movie very fast.
Now to figure out all the nuances in Flex containers to add the polish. - From: So for Finally, in the same application we have a few commands that trigger
off a string of four or more server calls via delegates in a row, so the
mapping of commands to delegates is 1:many (I've written a little state-machine
logic in my commands onResult using (gasp) a case statement - unfortunately I
haven't seen Steven's solution for this in 0.99 at this point, will have a look
soon but it may take a bit to tear me from my state machines, which work rather
nicely). |
smime.p7s
Description: S/MIME cryptographic signature

