Re: AutoComplete attribute in Serviced Components-- how to use?
From: Tomas Restrepo \(MVP\) (tomasr_at_mvps.org)
Date: 08/14/04
- Next message: José Miguel Torres: "Re: Com+ - when to use ?"
- Previous message: Jim Bancroft: "AutoComplete attribute in Serviced Components-- how to use?"
- In reply to: Jim Bancroft: "AutoComplete attribute in Serviced Components-- how to use?"
- Next in thread: Jim Bancroft: "Re: AutoComplete attribute in Serviced Components-- how to use?"
- Reply: Jim Bancroft: "Re: AutoComplete attribute in Serviced Components-- how to use?"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 14 Aug 2004 08:35:38 -0500
Jim,
> The problem for me comes when a transaction is supposed to fail. I've
> modified my child class so that it tries opening an incorrectly-spelled
> table, which triggers an exception. The Catch statement in the child
> component is entered, but the transaction appears to complete, at least
> according to the transaction statistics page in the COM+ explorer? As I
> understand it, the AutoComplete attribute is supposed to abort the
> transaction when an exception occurs, but it doesn't appear to be the case
> here.
Actually, it is supposed to abort the transaction when the method actually
"throws" an exception (that is, when the exception is not handled internally
by the method and bubbles up outside of it's scope), not merely when the
exception occurs. If the child class handles the exception internally, COM+
will never see it, and thus it will never doom the transaction.
Furthermore, an exception would actually have to bubble up all the way out
of the outer component, since otherwise, you'll get the infamous
"transaction wanted to commit but transaction rolled back" error...
-- Tomas Restrepo tomasr@mvps.org
- Next message: José Miguel Torres: "Re: Com+ - when to use ?"
- Previous message: Jim Bancroft: "AutoComplete attribute in Serviced Components-- how to use?"
- In reply to: Jim Bancroft: "AutoComplete attribute in Serviced Components-- how to use?"
- Next in thread: Jim Bancroft: "Re: AutoComplete attribute in Serviced Components-- how to use?"
- Reply: Jim Bancroft: "Re: AutoComplete attribute in Serviced Components-- how to use?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|