Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 2nd, 2007, 12: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!
 
Old May 3rd, 2007, 10: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

 
Old May 4th, 2007, 11:01 AM
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.

 
Old May 6th, 2007, 10: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





Similar Threads
Thread Thread Starter Forum Replies Last Post
web hosting asp to go ASP.NET 3.5 Basics 0 March 21st, 2008 02: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 08: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 03:22 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.