.NETGURU
With or without COM+ architecture decision
Messages   Related Types
This message was discovered on microsoft.public.dotnet.framework.component_services.

Post a new message to this list...

normalek@yahoo.com
Hi,
I'm facing a dilemma in architecting middle-tier software.
My business logic layer needs only two of services, usually provided
by COM+ : object pooling and transaction management. I am trying to
avoid using Enterprise Services, because there is some unnecessary
overhead involved. I successfully implemented my own remote objects
pool. It performs almost six times faster than COM+ object pooling, so
no hesitations in this matter.

Manual transaction management, however, is more complicated.
Basically, I can achieve it quite easily, storing ADO Connection and
Transaction objects in the call context. I can create my own
transaction attributes at methods level and access them at the run
time. Then, by traversing the call stack, I can find out which
existing transaction to use, if any. Distributed transactions are not
necessary, because all my data sits in one database and will remain
that way.
There is one huge drawback to this solution, though. It requires that
db connection will remain open during the whole call chain, which
could be quite lengthy. Not very scalable (but very fast).

So back to distributed transactions, where connection can be closed
and transaction still will be alive, managed by DTC. In this case, I
need to use Enterprise Services. I can utilize those services by using
ServiceConfig and ServiceDomain, without deriving my objects from
ServicedComponents. My transaction will become distributed, but COM+
package will not be created.

The question, I guess, is this: if I use the latest approach, will it
release me from the whole COM+ runtime overhead, or just from
registration and strong naming hassles at deployment time? Will
framework still utilize COM+ or be talking directly to DTC?

TIA
Reply to this message...
 
    
enrico sabbadin @ infinito
u might want to have a look at this.
http://www.devx.com/enterprise/Article/20932/0

HTH

<Click here to reveal e-mail address> wrote in message
news:Click here to reveal e-mail address...
[Original message clipped]

Reply to this message...
 
    
normalek@yahoo.com
Thanks, Enrico. Nice article. Basically, it describes in details the
approach I proposed in my second paragraph. It has the same drawback,
as I pointed (need to keep a connection open during the transactional
call chain), but I guess the performance gain worth it. Or maybe not.

"enrico sabbadin @ infinito" <Click here to reveal e-mail address> wrote in message news:<Click here to reveal e-mail address>...
[Original message clipped]

Reply to this message...
 
 
System.EnterpriseServices.ServiceConfig
System.EnterpriseServices.ServiceDomain




ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
Ad


Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification