Hello,

A couple months ago, Barney suggested a way to do transaction management with objects.

>From Barney's post (http://www.mail-archive.com/[EMAIL PROTECTED]/msg02375.html):

<begin_ post>
PersonManager.beginTransaction() would look like this:

method beginTransaction() {
  getPersonPersistor.beginTransaction();
}

...

In PersonPersistor, the method would contain a single CFTRANSACTION tag if
you're using a transactional database...
</end_post>


I have tried to implement this but when I try to write the 
PersonPersisotr.beginTransaction() and PersonPersistor.endTransaction() with functions 
like this:

<cffunction name="beginTransaction" >
  </cftransaction>
</cffunction>

<cffunction name="endTransaction" >
  </cftransaction>
</cffunction>

I get a CF parsing error: "Context validation error for tag cftransaction: The end tag 
</cftransaction> encoutered on line 253 at column 19 requires a matching start tag."


I hope that if I could get by the CF parser, then the code would function as expected. 
 Does anyone know how to "trick" the parser into allowing a lone </cftransaction> tag? 
 Or is this hopeless?


Thanks,
Jon

----------------------------------------------------------
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.com/[EMAIL PROTECTED]

Reply via email to