We usually do it this way:
<cftransaction action="begin">
<cftry>
[CODE HERE!!!]
<cftransaction action="commit" />
<cfcatch>
<cftransaction action="rollback" />
</cfcatch>
</cftry>
</cftransaction>
------------------------------------------------
Gerry Gurevich,
Lockheed Martin
[EMAIL PROTECTED]
919-572-7818
[EMAIL PROTECTED] wrote on 12/15/2004 04:06:38 PM:
> This is how I'm doing it:
> <cftransaction>
>
> </cftransaction>
>
>
> Where do I put my code in your scenario?
>
> <cftransaction action="begin">
> [CODE HERE???]
> <cftransaction action="rollback" />
> [WHAT GOES HERE ???]
> <cftransaction action="commit" />
>
> </cftransaction>
>
> Thanks
>
> Tom Schreck
> 972-361-9943
> -----Original Message-----
> From: Michael Collins [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 15, 2004 2: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 www.mail-archive.
> [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]