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!!!
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!!!