On Tue, 23 Nov 2004 13:39:10 -0500, Bill Rawlinson
<[EMAIL PROTECTED]> wrote:
> in my experience a transaction block wont' work across multiple CFCs -
> maybe I missed something with it but that has been my experience and
> has been a small part of why CFC adoptation hasn't been that great
> where I work.  Some of the thigns we work with have a lot of related
> items - and we have separated out these items into logical
> "components" however, due to the limitation of the cftransaction we
> don't use the cfc exactly.
> 
> instead we have a directory for each object and the directory has a
> file in it "api.cfm" that provides all of the public and "private"
> methods for that object.  then a controller cfm file that is called
> when a congoloration of information needs to be stored calls the
> appropriate folder/api.cfm methods in a specific sequence (Foreign
> keys and all) so that all objects can be saved and relationships
> maintained, all within a cftransaction.
> 

In the initial CFMX release, there was a bug in that CFC methods were
not transaction-aware, which is to say that if you had a cftransaction
tag surrounding multiple methods, it was not transaction-safe.
However, this bug was fixed in CFMX 6.1 and you can now surround
methods with cftransaction without issue. We use it in some of out
code and it works as advertised.

Regards,
Dave.
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at 
[EMAIL PROTECTED]

Reply via email to