Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0
This is the forum to discuss the Wrox book ASP.NET 2.0 Website Programming: Problem - Design - Solution by Marco Bellinaso; ISBN: 9780764584640
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 2nd, 2007, 01:27 PM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default TransactionScope and Shared Web Hosting

Hi!

In the book, it was mentioned that TransactionScope shouldn't be used in a shared web hosting environment because the server could be reconfigured... Could someone clarify that for me? I'm building a CMS to be hosted on a shared server, but I would really like to use TransactionScope in the BLL.

Thx,

C.

P.S. Great book! I'm hoping you guys do another Problem - Design - Solution book for Windows Form development!
  #2 (permalink)  
Old May 3rd, 2007, 11:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You obviously can't control the transaction scope outside of your web application. The problem would be any attempt to enlist in a wider scope than you are allowed to use. This happens automatically in some cases.

If you can contain the scope to your app only, it "might work". That's the best assurance you can get when it comes to MTS on a shared server.

There won't be a Winforms book like this because Windows apps are highly specialized by their nature. It's hard to find a need for a general purpose application for Win Forms. Besides, all the Windows fat client book focus is already moving to WPF. You should check into WPF!

Silverlight is the new compelling web technology after AJAX. I wish the world would slow down so I can keep up with all this stuff!

Eric

  #3 (permalink)  
Old May 4th, 2007, 12:01 PM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the response, but I'm still rather unclear:

>You obviously can't control the transaction scope outside of your
>web application. The problem would be any attempt to enlist in a
>wider scope than you are allowed to use. This happens automatically
>in some cases.

I don't understand what you mean about the transaction scope being outside of my application. If I look at the BLL of the TBH (Order object), I had thought the scope began and ended in the BLL, with a trickling down to the DAL so that commands could be properly transactioned. Could we not specify the transaction scope as root? Would that prevent an attempt to enlist in an ambient scope I don't have access to?

Do all databases work with TransactionScope? I'm really jazzed about the concept, it would make my code much more elegant.

Cheers,

C.

  #4 (permalink)  
Old May 6th, 2007, 11:17 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Atlanta, Georgia, USA.
Posts: 917
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The whole idea behind MTS is to allow different tiers and different applications to participate in the same transaction. For example, if you call a COM object hosted as COM+, then it can participate in the same transaction. This can either be automatic (auto-enlistment) or manual. Manual is good in my book because it lets me decide the span of the transaction. Auto enlistment is easy, but dangerous.

Oracle can support MTS transactions, but that support may require an extra software layer that has an extra fee. I don't know about other DBMS's.

Web Services also can't participate in MTS transactions yet. Even the super-cool WCF can only support single call transactions at this time. Full transaction support in services will arrive someday, but not soon.

Eric

 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
web hosting asp to go ASP.NET 3.5 Basics 0 March 21st, 2008 03:38 PM
Running MS DTC On Shared Hosting Site learningASP.Net BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 February 4th, 2008 11:08 AM
Automatic reading of RSS news - Shared hosting ik ASP.NET 1.0 and 1.1 Professional 0 September 18th, 2007 09:22 AM
Web Hosting gokul_blr Classic ASP Databases 2 January 23rd, 2006 03:59 PM
Web Hosting dipesh .NET Web Services 0 September 8th, 2003 04:22 AM



All times are GMT -4. The time now is 11:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.