The inner cftransaction tags are unnecessary - CF auto-commits transactions
at the end of the tag and rolls them back automatically in the case of an
error.

<cftransaction>
        Some Code Here
</cftransaction>

Is all that you need.

Roland

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Michael Collins
Sent: Wednesday, December 15, 2004 3:59 PM
To: [EMAIL PROTECTED]
Subject: RE: [CFCDev] cftransaction

Tom,

How are you writing your cftransaction tags?

Your code should look like this:

<cftransaction action="begin">

        <cftransaction action="rollback" />
        <cftransaction action="commit" />

</cftransaction>


This does not work:

<cftransaction action="begin">

        <cftransaction action="rollback" ></cftransaction>
        <cftransaction action="commit" ></cftransaction>

</cftransaction>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Dave Carabetta
Sent: Wednesday, December 15, 2004 3:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [CFCDev] cftransaction


On Wed, 15 Dec 2004 14:27:27 -0600, Schreck, Tom <[EMAIL PROTECTED]>
wrote:
>  
>  
> 
> I'm having an issue with <cftransaction> working as I think it should.  
> In my action page, I wrap a series of CFC invocations and method calls 
> inside a <cftransaction> in the hope that if a method fails then all 
> will be rolled back.  This is not happening.  The processing that 
> occurs prior to the failure is not being rolled back.  Does anyone 
> have insight to this issue please?
> 

What version of CF are you using? The 6.0 release did indeed have a bug
where methods were not transaction-aware, but this was fixed with the Red
Sky (6.1) release.

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



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