Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Component Services / February 2004

Tip: Looking for answers? Try searching our database.

Transactions in COM+ with Non-Transactional Components

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Andr? Henriksson - 26 Feb 2004 15:31 GMT
Hi,

I'm a bit confused over how transactions work with managed code
components and .Net COM+ components. All papers and postings I've
found say that if a .Net Serviced Component calls a non-serviced
component any transactions will be ignored started from the serviced
component.

However, today I tested the following:

.Aspx-page

calls

Serviced Component (Transaction required)

calls

MS Data Access Building Block (SQLHelper to execute SPs)

calls

Database

What the papers say is that if I make for instance several inserts
into the database from the Serviced Component through the SqlHelper
class and finally calls ContextUtil.SetAbort in the Serviced Component
non of the inserts should be rollbacked. But they are, how come?

Sincerely, André
enrico sabbadin @ infinito - 26 Feb 2004 17:44 GMT
non-configured .net components run in the context of the caller confgured
component .. they
are like inline code as far as com+ is concerned (think about ado.net : it
is not a configured component , however it has the "transaction flow" (it's
ado.net doing the updates basically , isnt' it ?))
This is exactly the same in vb6 /COM ..
as a fact one generally puts business objects in com+ and leave data access
objects as simple components).

I've read that MS says that this behaviour might change in the future, I
just know that if it does it break thousands of apps.

HTH

> Hi,
>
[quoted text clipped - 26 lines]
>
> Sincerely, Andr?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.