This content has been marked as final. Show 5 replies
When you create a DataService and fill your collection. The collection becomes managed. You don't have to call fill again if there is any change in the data. Server pushs updates to clients when the client's dataservice is using rtmp channel. It is a live connection between the server and the client. For example,
you fill(collection, "hqsql", from products where price < 100). If one of the product's price increases, server push a message to your collection to remove it. If a product's product's price decrease, it will be added to the collection. The push is happened based on your fill method.
You made it clearer now Bill, thx!. So I'll keep studying how I'll do this. See ya!
How does this rtmp channel work? I mean it isn't http based? Is there a open port directly to some server-side code or something?
The problem i have is when there is a rtmp message request send for data from the server, it isn't going through any of the servlets, so it isn't captured by Spring/Java which does all the security through the servlets and the HttpSession (session scoped proxy bean from spring2.0) .
This session scoped bean isn't available from a FDS call because it isn't session scoped...
I don't think there is a solution to this? Configure the rmtp as a spring bean maybe?
RMTP is a persistent connection so it cant be HTTP. And yes it works in a different port. If you take a look at services-config.xml file in the /WEB-INF/flex/ from the sample applications that come with Flex Data Services you will see the channel configurations available. Search for them for better understanding.
Thnx a lot.. ill think of another solution for our security model. I have enough info :-)