The X in the gateway has been fixed.  I'll commit eventually.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sean
Corfield
Sent: Wednesday, March 01, 2006 4:02 PM
To: [email protected]
Subject: Re: [Reactor For CF] noob warning... does Reactor DAO contain any
state?

On 3/1/06, Dave Shuck <[EMAIL PROTECTED]> wrote:
> I have created a MachII plugin that creates a Reactor Gateway factory
> property so that the first time a particular gateway is needed in my
> application it creates it, and is then referenced any time in the
> application.  This works really smoothly, I was planning to do the same
> thing with my DAO, but I wanted to make sure that I wasn't going to run
into
> any problems with overwriting some state that it held.  Is this a safe
thing
> to do?

Well, if Reactor's code is fully thread-safe then, yes, it's OK.

I just had a look and noticed that in
reactor.base.abstractGateway.getByQuery(), the loop variable x is not
var-declared so it's not currently thread safe. I'd class this as a
bug - I'm sure Doug intended the code to be fully thread-safe.

The DAO code looks thread safe as far as I can tell.

Interesting question tho' - Doug, was it your intention that a DAO and
a gateway could be created once and stored in application scope?
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

 

-- 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