Thx for ur reply.
I am new in using transaction.I am facing a problem in using transaction.
This is the situation :
1) I have two component( 1st component(comTrx) is for insert, update,
delete and need transaction, 2nd component(comNonTrx) is for select and
doesn't need transaction )
Now, I have a main component(comMain) that will do Insert(comTrx) ->
Select(comNonTrx) -> Update (comTrx)
First, I let the comMain to handle the transaction by using SetAbort()
and SetComplete() if the comNonTrx and comTrx throw exception.
The comMain work fine.
If I let the comNonTrx and comTrx also involve in handling transaction
( example: when the comTrx throw exception, it will call SetAbort(). )
If I do like that, the system will throw "Transaction has been aborted
by.....".
Why I do like this is because the transaction will lock the database and
I though that it is better to release the transaction as fast as posible.
Is this means that only the component which start the transaction needs
to handle by itself?
If not, how can I handle the transaction?
2) Beside the 3 component, I also need to use another component( AuditLog)
which doesn't need transaction and doesn't need RollBack.
Like (1), comMain will do Insert(comTrx) -> Select(comNonTrx) -> Update
(comTrx) -> AuditLog
I had try to set the AuditLog to NotSupported,Disabled and without any
transaction attribute.
But whenever there is a exception, the AuditLog will also RollBack.
Any idea of how to set the AuditLog not to RollBack?
[quoted text, click to view] "Florin Lazar [MSFT]" <xwscom2@online.microsoft.com> wrote in message
news:%23%23AH5P4hDHA.1452@tk2msftngp13.phx.gbl...
> COM+ and MSDTC don't support nested transactions.
>
> Regards,
> --
> Florin Lazar - Microsoft
>
> Please do not send email directly to this alias. This alias is for
newsgroup
> purposes only.
> This posting is provided "AS IS" with no warranties, and confers no
rights.
>
>
> "cllor" <cllor@ebworx.com> wrote in message
> news:#q6dlr1hDHA.744@tk2msftngp13.phx.gbl...
> Is the COM+ transaction supports nested transaction?
> Is any one know how to do it?
>
>
>