This content has been marked as final. Show 2 replies
Hi! I will try my best to answer you correctly.
RemoteObject permit you to instanciate object and call method to perform action on the database. From here it's very easy to understand the mechanism.
DataService permit you to set up a proxy, with Java or ColdFusion, to manage the transaction with the Database and push all changes to database on each instance of the application running in real time.
You follow me?
In a CRM application if your manager update a client profile behind you're in the account, you will not have to refresh the page to see the data updated. The page will get updated by the DataService proxy.
That's very usefull when developping application that scope to a lot people at the same time.
That reduce traffic on the network for AJAX base application, because there's no page of the application who perform timer base request to query for new data, they still wait for the proxy to update them.
Everybody get new data at the same if they're on the DB row.
And finally, it's very easy the devellop.
I wish that's help you and sorry for my english.
RemoteObject simply enables your Flex client application to call methods on your Java class on the server. It's very simple to use and configure and there's no magic behind it. You make the call from Flex, it goes to the server, LCDS makes the call to the Java class, gets the result and returns it back to your Flex client. That's it.
DataService on the other is much more sophisticated. It lets you expose your DB to Flex clients through Java objects and Assemblers (that you have to write yourself) on the server and Actionscript objects on the client. It also maintains the list of Flex clients looking at the data, keeps those clients in sync, make sure an update from one client goes to the other and so on. It basically enables you to write sophisticated multi client applications.