I aim to structure my apps so that any atomic action (with relation to the
database) always happens within a single call to a listener.  Depending on
how you structured your app, that listener might house the CFTRANSACTION tag
(but probably not), or it will be within a method that the listener calls on
a CFC at a lower level.

Events in Mach-II are not analogous to fuseactions in FB4, if you're
familiar with both.  Events are completely distinct actions, not pieces of
an action that can composited together.  It may happen that you need to fire
several events in the handling of one HTTP request (usually the case, in my
experience), but each event is still a stand-alone action to a fairly high
degree.

About the highest level of chaining between actions that I ever use is to
pass content from a public event to a private event that applies a layout to
the content (adds page-level HTML elements, perhaps global nav, etc).

Not implying that that's the right way to do it, of course, but it's worked
very well for my thus far, and directly addresses your problem, so I thought
I'd share.

barneyb

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Behalf Of Justin Balog
> Sent: Tuesday, October 14, 2003 8:51 AM
> To: '[EMAIL PROTECTED]'
> Subject: [CFCDev] Mach-ii Managing Transactions
>
>
>
> Howdy, not to turn this into a mach-ii list, but I know some
> folks out there
> are using it. I was wondering how everyone is handling transaction
> management.  If I handle one event that does some data processing, then
> announce another event that does some data processing, and the
> second event
> fails, how can that be all grouped under a single transaction?
> Can I handle
> this via the <plugin> preProcess() and postProcess()?  Any feed
> back will be
> helpful.
>
>
> Thanks,
>
> Justin
> ----------------------------------------------------------
> You are subscribed to cfcdev. To unsubscribe, send an email
> to [EMAIL PROTECTED] with the word '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]
>

----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the word '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