On Wed, 15 Dec 2004 15:41:06 -0600, Schreck, Tom
<[EMAIL PROTECTED]> wrote:
> All of my database processing is done through CFCs.  Basically, I have an
> action.cfm page where I invoke a series of CFCs and call specific functions
> of those CFCs.  I tried wrapping <cftransaction> around function calls in my
> action.cfm page thinking it would roll back any changes made in the called
> CFCs.  But that is not the case.

If you have this:

<cftransaction>
   method call
   method call
   method call
</cftransaction>

then if any method call throws an exception, CF will roll back *all*
of the database changes made by the methods as long as they all refer
to the same datasource.

Are you doing something different to the above?

BTW, I have exactly this code in one of my apps and it *does* rollback
all the database operations in the case of an exception so I know it
works.
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme

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