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 / April 2005

Tip: Looking for answers? Try searching our database.

Transaction is NOT timing out !!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saji - 01 Apr 2005 06:56 GMT
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

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.