AJAX Longpolling with ColdFusion and BlazeDS - Subtopics and building a messaging app
I'm sorry to say that I've been putting this post off. Why? Well to be honest I've been struggling with getting my head around how to actually use longpolling. Its all very well understanding the mechanics, but how can you use it effectively.
Part of the problem I've been having is the nature of sending messages and filtering them with BlazeDS. What I keep forgetting is that long poll messaging is "fire and forget". You don't send a message and expect an immediate response. You send a message and a response might be broadcast to all event listeners with a specific filter. If you want a request and response, call a webservice or a make an ajax request. Don't use long polling and event gateways.
Blog Roundup 30 April 2010
I'm rubbish! I really am... I promise and I promise to keep on top of Blog Round-ups, but I never seem to quite manage it.
I would really like to keep writing this round-ups ever week, but its quite an effort. Can I persuade anyone to co-author these posts with me? Leave me a comment. Drop me an email. Shout me on Twitter.
Anyway, on with the round-up.
AJAX Longpolling with ColdFusion and BlazeDS - Connecting and Messaging
In my last post on long polling I went through the basic set up of ColdFusion and BlazeDS before getting into too much code.
This part I want to get a basic connection and a couple of simple messages being sent and received.
AJAX Longpolling with ColdFusion and BlazeDS - Getting set up
I've spent some of my week this week fighting with JavaScript, BlazeDS and ColdFusion to get a working model for some ExtJS functionality that I'm currently building at work.
One of several pieces of functionality we'd like is to have is real time notifications of workflow changes. The way it was described was "we want to push alerts to the users".
I decided to have a look at how we actually addressed this "problem". We didn't really need to "push" alerts to users, so the solution was traditional polling or long polling.
