Using a SOF Object - through RemoteObject and
SOF objects can be accessed through Flex using the remoteobject tag. And of course we can access them using <cfinvoke>, <cfobject> or createObject in CF.
There are two major difference between accessing SOF objects via remoteobject and via the CF approach.
1. When using remoteobject in Flex, the inherited methods are not available to the remoteobject tag. This means you need to expose the functionality of the inherited methods through new methods, or through creating a gateway of some sort that does the same, but in a more generic fashion. (The code for such a gateway will follow shortly.)
2. When an exposed method of a SOF object is accessed through remoteobject, it has available to it all the variable scopes that Shado sets up (and indeed the ones that Coldfusion makes available). And this is when the remoteobject tag becomes a Jedi.
However, if you try and <cfinvoke> or createObject the same SOF object from outside of your site directory (akin to trying to access it "remotely"), these scopes are not available to these tags, and you will get a gray CF error -- (the Dark side of the CF force casts it 'Shado').
"In mind, do keep this", says Yoda.
May the force be with you.
Comments
There are no comments for this page as yet.
print page
