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 / May 2004

Tip: Looking for answers? Try searching our database.

2 COM+ componants that participate in the same distributed transaction

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Krichene Neila - 13 May 2004 05:56 GMT
Hello every body
I have two differents COM+ componants inheriting from rhe servicedcomponent class with ActivationOption = server.

The first server COM+ compoent updates a database "Bank1"
the second server Com+ component updates a second database named "Bank2"

The two components are set with the attribute [ Transaction.required]

I want that the two components participate in the same distributed transaction. I have tried to create an instance of the second component within a method of the first compoent like this:

example
transactionoption.required
pucblic class Comp1:servicedcomponent {
public method 1

{Com2 Kom2 = new Com2()
Kom2.Enregistrer();}

But this generates an exception because the first component fails to create the instance of the second one .

Can someone help me , tell me why it doesn't work or give me a solution??
Thanks
Florin Lazar [MSFT] - 29 May 2004 09:15 GMT
Hi Krichene,

What exception do you get when the creation fails?

Regards,
Signature

Florin Lazar - Microsoft - [ http://blogs.msdn.com/florinlazar ]
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.

> Hello every body
> I have two differents COM+ componants inheriting from rhe servicedcomponent class with ActivationOption = server.
[quoted text clipped - 5 lines]
>
> I want that the two components participate in the same distributed transaction. I have tried to create an instance of the second component
within a method of the first compoent like this:

> example
> transactionoption.required
[quoted text clipped - 15 lines]
>
> <Id>97QeFazqTkWm6KJBZRGMkg==</Id

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.