All you need to do is to put the reactorfactory in the application scope.
Reactor caches stateless objects (effectively putting them in the
application scope too).  Objects that are stateful shouldn't be put in the
application scope and reactor doesn't cache them.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Nick Tong - TalkWebSolutions.co.uk
Sent: Monday, July 10, 2006 5:22 AM
To: [email protected]
Subject: [Reactor for CF] Objects in Application scope

Hi All,

I just wondering if people are putting the Reactor generated objects
into the application scope i.e.

<cfset application.userGateway = applciation.reactor.createGateway("user")
/>

I see this as the place to put them as you won't have to instantiate
the object each time that you use it. thoughts?

-- 
Nick Tong

web:         http://talkwebsolutions.co.uk
blog:         http://succor.co.uk
short urls: http://wapurl.co.uk
linkedin:    http://linkedin.com/pub/0/a70/502


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --



-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to