Thanks Chris. The swf is embedded in a .cfm page, though. I would think that onApplicationstart() would be run when I'm hitting my remote facade which lives beneath the Application.cfc (of course). I'll try destroying the services. I could also check for the existence of the services in the application scope on each request, but I've heard that there are some security issues with flash remoting and the onRequestStart() function. Jeff
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of Chris Scott
Sent: Tuesday, April 24, 2007 8:35 PM
To: [email protected]
Subject: [coldspring-dev] Application Scope out of sync?
What is probably happening here is your swf is embedded in an html
file. When it accesses the remote facade, the application has timed out. You
could change your index.html file to be index.cfm, which would restart the
application, or but a ping service in your main.mxml file that just hits a cfm
page on creationComplete, which will have the same effect. I would also suggest
you have your services destroyed onApplicationEnd in application.cfc
Chris
Chris Scott
[EMAIL PROTECTED]
http://cdscott.blogspot.com/
http://www.coldspringframework.org/
On Apr 24, 2007, at 1:20 PM, Battershall, Jeff wrote:
I've run into a phenomena I have no explanation for, and I'm
looking for advice. Here's the scenario:
I've added a function loadFramework() to my Application.cfc
that is run during onApplicationStart().
Then I've got a remote façade that is being used to provide
services to a Flex 2 app, using CFMX 7.02 as the backend.
Periodically, I'm getting an error : Element SERVICEFACTORY is
undefined in a Java object of type class [Ljava.lang.String; referenced as ".
Note: SERVICEFACTORY is residing in the application scope.
This error disappears if I reload ColdSpring. I could work
around it by checking for it's existence in my Remote façade and loading it,
but that is a kludge. What I don't understand is how my SERVICEFACTORY could
not exist in the application scope if onApplicationStart() is reloading my
framework.
Note my call to loadFramework() isn't CFLOCKed although the
code in the function is - perhaps it should be? To prevent a race condition?
Anyone encountered this or something similar?
Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)
TeamFusionD.gif
Description: TeamFusionD.gif
