The chat client I wrote for it uses Flash and takes advantage of XMLSocket() so the server can push changes out to any connected clients. Neither the client nor the server make regular scheduled refresh requests. The requests are triggered by some user input to one of the connected clients.
You could build the client as a java applet if you wanted to, but I found that Flash is much better suited to building the UI for a chat client than Java. I think you can also use a signed JavaScript file to do socket level stuff, but again Flash just seems like an easier option. The chat client and server part is relatively straightforward. The tricky bit is how you want this to hook up to ColdFusion. Spike >-----Original Message----- >From: >[EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] >o.uk] On Behalf Of Sam Westlake >Sent: Friday, April 23, 2004 8:39 AM >To: [EMAIL PROTECTED] >Subject: RE: [ cf-dev ] push / pull in CF > >Well, I am still trying to get my head around the edges of >what's possible in CF. > >A chat server sounds good ... does it force the client to >update or does each client refresh every n seconds? > >I guess that you would instantiate a ServerSocket object on >the server with a port number, as in a standard Java app, but >can you implement a Socket object on each client? > >Would this invovle having to use an applet on the client instead? > >-----Original Message----- >From: Stephen Milligan [mailto:[EMAIL PROTECTED] >Sent: 23 April 2004 17:16 >To: [EMAIL PROTECTED] >Subject: RE: [ cf-dev ] push / pull in CF > >I have written a lightweight socket based chat server in Java >that could be modified to do something like this. How to go >about modifiying it would depend on exactly what it is that >you want to do. > >Can you provide any more info? > >Spike > > >>-----Original Message----- >>From: >>[EMAIL PROTECTED] >>[mailto:[EMAIL PROTECTED] >>o.uk] On Behalf Of Sam Westlake >>Sent: Friday, April 23, 2004 7:59 AM >>To: [EMAIL PROTECTED] >>Subject: [ cf-dev ] push / pull in CF >> >>Has anyone tried to implement any push-from-the-server type apps. in >>ColdFusion? >> >>I have found Java components that can be accesed from CF for >connecting >>to other servers but I want to try and set up some sort of >>socket-widget-thingy that will allow the CF server to push >data back to >>a web browser. Like the XMLSocket in available in flash? >> >>Any thoughts? >> > > >-- >These lists are syncronised with the CFDeveloper forum at >http://forum.cfdeveloper.co.uk/ >Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > >CFDeveloper Sponsors and contributors:- >*Hosting and support provided by CFMXhosting.co.uk* :: >*ActivePDF provided by activepdf.com* > *Forums provided by fusetalk.com* :: *ProWorkFlow provided by >proworkflow.com* > *Tutorials provided by helmguru.com* :: *Lists hosted by >gradwell.com* > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > > >-- >These lists are syncronised with the CFDeveloper forum at >http://forum.cfdeveloper.co.uk/ >Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > >CFDeveloper Sponsors and contributors:- >*Hosting and support provided by CFMXhosting.co.uk* :: >*ActivePDF provided by activepdf.com* > *Forums provided by fusetalk.com* :: *ProWorkFlow >provided by proworkflow.com* > *Tutorials provided by helmguru.com* :: *Lists >hosted by gradwell.com* > >To unsubscribe, e-mail: [EMAIL PROTECTED] > -- These lists are syncronised with the CFDeveloper forum at http://forum.cfdeveloper.co.uk/ Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ CFDeveloper Sponsors and contributors:- *Hosting and support provided by CFMXhosting.co.uk* :: *ActivePDF provided by activepdf.com* *Forums provided by fusetalk.com* :: *ProWorkFlow provided by proworkflow.com* *Tutorials provided by helmguru.com* :: *Lists hosted by gradwell.com* To unsubscribe, e-mail: [EMAIL PROTECTED]