Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Following ObjectContext

Status
Not open for further replies.

sperron

Programmer
Joined
Mar 15, 2002
Messages
1
Location
CA
Hi everybody, this is my problem :

I have a COM+ component containing 2 classes. One (clsMulti) with a multiuse instancing and another (clsPriv) with a private instancing.

This component is called from an asp page this way :

dim objTest
dim strTemp
set objTest = Server.CreateObject("prjTest.clsMulti")
strTemp = objTest.getInfo()

So, in clsMulti and clsPriv I have an GetObjectContext.SetComplete if everything's ok and a GetObjectContext.SetAbort in each if somethings goes bad.

When something goes bad in clsPriv, I setAbort the objectContext but it's seems that this action do anything. When I finally return to the asp page, it tells me that the transaction's complete!!!

Somebody tells me that I'm supposed to be able to have only one MultiUse Class and a lot of private class in one component and that the transaction context will be set correctly in the private class.

Do anybody have a hint on this.

Thank you.

Excuse my probably poor written english, not a lot of practice in Quebec City.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top