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!

problems with transaction in COM+

Status
Not open for further replies.

karinazea

Programmer
Oct 17, 2002
1
PE
I use COM+ with informix database.
The problem i have is that in an object with requires transaction i create an object with requires transaction this way:

Set objAccount = CreateObject("Account.Pay")

When i try with few users it makes the rollback with only createobject but with many users it sometimes doesn´t work and doesn´t roll back the created components changes.


What is wrong? Is it necesary in COM+ to create the object with createinstance so the second object is in the same transaction????

Set ctxobject = GetObjectContext()
if ctxobject Is Nothing then
Set objAccount = CreateObject("Account.Pay")
else
Set objAccount = ctxobject.CreateInstance("Account.Pay")
end if

Please help me!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top