hi all

I'm pushing CFTRANSACTION (to find the best way to use it with our
archetecture) and getting this error "Not in local manual transaction
mode" when trying to run 3 cfc methods with a transaction around them.
(example simplified)

<cfset obj = createObject("component","persist")>
<cftransaction action="BEGIN">
        <cftry>
                <!--- obj.Add() --->
                <!--- obj.get() --->
                <!--- obj.delete() --->
        <cftransaction action="COMMIT" />
        <cfcatch>
                <cftransaction action="ROLLBACK" />
                <cfdump var="#cfcatch#" label="ERROR ON INSERT:">
        </cfcatch>                      
        </cftry>
</cftransaction>                                
                                

I've got away with something like this before but it was all within a
CFC: a  public method (with the transaction) was calling various private
methods doing a query each. In this case it's a CFM page (although I'm
wanting it to work from another - controller - CFC).

Am I right in saying that this will never work because of how the CFM
and CFC are sitting in the call stack (hence the error)? If so, I'll
have to move more of the logic from controller to the persist CFC.

any suggestions?
thanx
barry.b

 


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to