Hi,
I have created a serviced component and deployed in COM+. I've set a
transaction time out value of 10 seconds both at class level and I
verified the same in COM+ explorer. I have set the same transaction
time out value in COM+ Explorer -> My Computer -> Properties
-> Options Tab
Class level settings.
[ObjectPooling(Enabled = true, MinPoolSize=50,
MaxPoolSize=100),Transaction(TransactionOption.RequiresNew,Timeout=10)]
I have a method which forces the thread to sleep for 20 seconds.
Surprisingly the transaction is not timing out after 10 seconds.
Method
public void SleepForSomeTime()
{
try
{
System.Threading.Thread.Sleep(20000);
}
catch(Exception ex)
{
throw ex ;
}
}
Can someone help me why transaction is not timing out?
Thanks
Saji
Faik Bilgen - 19 Apr 2005 22:18 GMT
Hi,
What do you see in the Distributed Transaction related items on Component
Services Explorer? (i.e. Transaction List, Transaction Statistics)
Does the transaction get created? If so what happens after 10 and 20 secs?
thanks
-faik
> Hi,
>
[quoted text clipped - 29 lines]
>
> Saji