Just a couple of thoughts: BlazeDS and Adobe LCDS (And others?) allow you to push data out to clients. You could set up listeners in your Flex app that respond to data from the server.
It sounds more like you want RTMP (Real Time Messaging Protocol). From the wiki "The raw TCP-based RTMP protocol maintains a single persistent connection and allows real-time communication." --- In [email protected], "kingquattro" <[EMAIL PROTECTED]> wrote: > > Hey guys, > I am pretty much a new bee at flex and action scripting. I am creating > a web app, and one of the requirements is that it has a messaging > system. Not chat session, but something similar to email. > > use case: > user A and B are logged at two different location. But are unaware if > other is logged in or not. User A would like to send A message to B, > so a types up a message and sends it, the message is saved in the DB, > and User A dispatches an event. If B is logged in then its is > listening for an event, and hence will know there is a message > waiting. Else when B logs in, it adds an eventListner for any message, > and at the same time fetches all unread messages from the DB. > > Any idea how i can dispatch and listen for event across sessions? > > I know the other way would be to dispatch an event every few mins that > Query's DB for any unread messages, but one I don't want to do a "busy > waiting" on it, secondly if thats the only way how can I setup an > event that is dispatched on clock tick? > > Thanks for your help. > > p.s I am using RPC and Coldfusion 8 to interact with my MYSQL 5 DB >

