You should maybe also take a look at Flash Communication Server. FCS
allows you to push data to ActionScript clients using RTMP; you can
then just implement some kind of 'Listener' class in you client which
receives notifications of data changes.  You could implement your FCS
code in such a way that the client makes an initial request giving its
intent to listen to some server side data and then FCS pushes out the
data when it changes.

Check out Client.call(..)on the server / NetConnection.call(..)on the
client, or alternatively you can use SharedObject.onSync(..) and
setProperty(k, v)

http://www.macromedia.com/devnet/flashcom/cross_product_integration.html

http://livedocs.macromedia.com/flashcom/mx2004/index.html



hth

dan




--- In [email protected], "Mink, Joseph" <[EMAIL PROTECTED]>
wrote:
> Thanks, Kevin!  I finally did my homework of the XMLSocket obj, but
> wasn't sure how to serve that protocol with a web server or servlet
> container...I'll definitely look for the examples you mention.  I wonder
> if they are actual stand-alone, custom servers of if they are a hack way
> of getting servlets to solve the problem.
>  
> Thanks!
> Joey
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Kevin Langdon
> Sent: Tuesday, October 04, 2005 10:01 AM
> To: [email protected]
> Subject: RE: [flexcoders] Asynchronous notification
> 
> 
> You probably want to look into the XMLSocket object.  This can make a
> connection back to a server and maintain it.  A 0 byte is sent between
> requests and response without the connection being dropped.  Those
> requests and responses are xml and could be used for messaging or keep
> alives to avoid timeout issues.  There are some good Java examples out
> there on implementing this on the server end, not sure about other
> platform implementations.
>  
> Kevin
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Mink, Joseph
> Sent: Tuesday, October 04, 2005 8:32 AM
> To: [email protected]
> Subject: [flexcoders] Asynchronous notification
> 
> 
> All,
>  
> We have, up until now, used webservices to check for server-side
> notifications...we just poll (I know, I hate polling!).  We'd like to
> move to something more asynchronous, but I thought I'd ask the forum for
> their recommendation.
>  
> I know there is some kind of method in AS for making an HTTP
> request...we could have a servlet that would accept that request, hold
> onto it until some data comes in, and then finally respond to the
> request.  Of course there are probably time-out issues that would have
> to be side-stepped.
>  
> That's about the only sol'n I can see being possible right now.  I'm not
> very familiar with RMI and Remote Objects, but can this technology be
> used asynchronously in Flex?
>  
> Any thoughts would be appreciated!
>  
> Thanks.
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> 
> SPONSORED LINKS 
> Web site design development
> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+
> site+design+development&w2=Computer+software+development&w3=Software+des
> ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac
> tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ>   Computer software
> development
> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We
> b+site+design+development&w2=Computer+software+development&w3=Software+d
> esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr
> actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw>         Software design and
> development
> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=
> Web+site+design+development&w2=Computer+software+development&w3=Software
> +design+and+development&w4=Macromedia+flex&w5=Software+development+best+
> practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ>       
> Macromedia flex
> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+
> development&w2=Computer+software+development&w3=Software+design+and+deve
> lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1
> 66&.sig=OO6nPIrz7_EpZI36cYzBjw>       Software development best
> practice
> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&;
> w1=Web+site+design+development&w2=Computer+software+development&w3=Softw
> are+design+and+development&w4=Macromedia+flex&w5=Software+development+be
> st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw>    
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to