Thanks Eric. It helps some. I don't need to persist session data, it is
just that AMF via PHP is an order of magnitude faster than CF in our
testing, but in fairness to CFMX I think the CFC is being compiled and
instantiated with each remote object call. I figure if I instantiate
the object in memory the performance would be similar to the php. 

hope I got the jargon right ;)

Jim

--- Eric Knipp <[EMAIL PROTECTED]> wrote:

> Jim,
> 
> I am working on a project with a big web services component, and this
> kind
> of issue was important for us to resolve.
> 
> We found that Application.cfc is still useful even in a web services
> world.
> onApplicationStart() and onRequestStart() are definitely invoked.
> 
> As to your primary question, this is how we did it - created a facade
> object
> that has a remote invokeBusinessService() method on it.  This method
> includes error trapping, and access to our ColdSpring beanFactory,
> among
> other things.  It acts as both a Facade and a Router, in that it sits
> on top
> of our business services (Facade pattern) and determines where to
> send the
> request (Router pattern).
> 
> We have defined our business services as singletons in ColdSpring, as
> they
> are not stateful.  If you have a need to persist session beans (for
> example), you could do that from within the services if you so chose,
> although I would recommend another Facade (session facade) for that.
> 
> Hope that helped ..
> 
> Eric
> 
> On 5/11/07, Jim Cassata <[EMAIL PROTECTED]> wrote:
> >
> > Seemed to be more of a CF question than a Flex one, so here it is.
> How
> > do I set a CFC as an object in memory if the CFCs are only called
> via
> > flash remoting? Does the Application.cfc and OnApplicationStart
> method
> > work the same way as in a CFML application? I am unsure what scopes
> can
> > be accessed in this way. Any insight would be helpful.
> >
> > Thanks,
> >
> > Jim Cassata
> >
> >
> > You are subscribed to cfcdev. To unsubscribe, please follow the
> > instructions at http://www.cfczone.org/listserv.cfm
> >
> > CFCDev is supported by:
> > Katapult Media, Inc.
> > We are cool code geeks looking for fun projects to rock!
> > www.katapultmedia.com
> >
> > An archive of the CFCDev list is available at
> > www.mail-archive.com/[email protected]
> >
> >
> 
> 
> You are subscribed to cfcdev. To unsubscribe, please follow the
> instructions at http://www.cfczone.org/listserv.cfm
> 
> CFCDev is supported by:
> Katapult Media, Inc.
> We are cool code geeks looking for fun projects to rock!
> www.katapultmedia.com
> 
> An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]



You are subscribed to cfcdev. To unsubscribe, please follow the instructions at 
http://www.cfczone.org/listserv.cfm

CFCDev is supported by:
Katapult Media, Inc.
We are cool code geeks looking for fun projects to rock!
www.katapultmedia.com

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]

Reply via email to