Well, basically all its doing is serving as a sort of container for
information throughout the method request.  Things will be stored and
set in it and then all that information is returned along with the
data that the method is actually returning.  Its for things like error
handling and other meta-debug information.  Once the method is done
and the results are returned, its not needed anymore, hence why I am
calling the init() (which in the way I am using it right now it should
admittedly be more of a reset() ) at the top of every method call.

But like barney said, I need to just change it where getMH() actually
creates a new object and returns it every time instead of returning
the already created object for the dao.

Thanks,

On 10/25/05, Sean Corfield <[EMAIL PROTECTED]> wrote:
> On 10/25/05, Barney Boisvert <[EMAIL PROTECTED]> wrote:
> > Single instance per DAO, and getMH() returns a _reference_ to that
> > per-DAO instance.  So the concurrency issue is there in all it's
> > potentially catastrophic glory.
>
> I wasn't entirely sure that was what he really meant but his code confirms it.
>
> Ryan, if your message handler is a service CFC and its methods are
> thread-safe, then having a single instance (per DAO) is OK. But it
> really depends on what your message handler does. If it stores data in
> variables scope it could well be a problem...
> --
> Sean A Corfield -- http://corfield.org/
> Got frameworks?
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
>
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email to 
> [email protected] with the words 'unsubscribe cfcdev' as the subject of the 
> email.
>
> CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
> (www.cfxhosting.com).
>
> CFCDev is supported by New Atlanta, makers of BlueDragon
> http://www.newatlanta.com/products/bluedragon/index.cfm
>
> An archive of the CFCDev list is available at 
> www.mail-archive.com/[email protected]
>
>
>


--
Ryan Guill
BlueEyesDevelopment
[EMAIL PROTECTED]
www.ryanguill.com
(270) 217.2399
got google talk?  Chat me at [EMAIL PROTECTED]

The Coldfusion Open Application Library - COAL - http://coal.ryanguill.com

www.ryanguill.com/
The Roman Empire: www.ryanguill.com/blog/


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm

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


Reply via email to