Groups | Blog | Home
all groups > coldfusion flash integration > september 2007 >

coldfusion flash integration : Remoting with CFC


Ian Skinner
9/7/2007 1:42:58 PM
I'm not familiar enough with the technologies and techniques you are
using to fully understand your logic. But the fist thing I thought of
when you described the process was a bottle neck. Where one process has
not completed before another is started and the latter request are
guitarMB
9/7/2007 8:28:56 PM
I'm using Flash remoting to send usage statistics from a movie up to a
coldfusion component for processing and storage. System works great -- at
least the individual calls are working -- but when I try to execute all these
calls multiple times through the movie, it never gets past two remote calls
before throwing an "Error Opening URL" error referencing my flashservices
gateway:

http://<host>/flashservices/gateway&CFID=1052&CFTOKEN=c8c5587a8f62a442-E197BB47-
B213-8FBA-0924E5F0BF114A00;jsessionid=2a30fe0e960f21172524?CFID=1052

I've tried changing names of the instance each time I call a new one -- but
that doesn't seem to matter. I'm starting to suspect this is a ColdFusion
error --
Anybody have any idea what I'm talking about?
I've included the connection code and the general examples of the method calls
I'm using...


import mx.remoting.*;
import mx.rpc.*;
import mx.services.Log;

// connection script
var trackingService:Service = new
Service("http://<host>/flashservices/gateway", null, "<cfc>", null, null);

// open user tracking tracking session (called once when movie is opened)
var sessionTrax:PendingCall = trackingService.discStart({cf_macID:xxx,
cf_projectID:xxx, cf_clientID:xxx });

// log user activity (needs to be called numerous times on any button click,
regardless of amount of clicks)
var clickTrax:PendingCall = trackingService.contentClick({cf_macID:xxx,
cf_projectID:xxx, cf_clientID:xxx, cf_content:xxx, cf_contentName:xxx,
cf_size:xxx });

// close user tracking session (called once)
var sessionTrax:PendingCall = trackingService.discEnd({cf_macID:xxx,
cf_projectID:xxx, cf_clientID:xxx });

Any help would be appreciated...
guitarMB
9/8/2007 12:01:45 AM
certainly that type of bottleneck is possible. the processes I'm running are
not terribly complex so I can't imagine they are stacking up that much, but
I'll certainly look into it.

I'm beginning to think more and more I'm missing an obvious ColdFusion server
setting. Others have suggested modifying the number of simultaneous
connections as a possibility. I modified this and didn't appear to be any
difference.
AddThis Social Bookmark Button