Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

MTS and .Net

MTS and .Net

MTS and .Net

We are starting a very big project (something like 1000 tables in the DB) with .Net. (C#)
We are not interested in distributed transactions (i.d. a transaction that involves two different DBMS) but we
will certanly use clusters. We do not have previusly made COM Objects to recycle.
The question is very simple (or very difficult): why should we use MTS (COM+)?
Or why should not use it?
Thanks for your comments.

RE: MTS and .Net

dear alexender
interesting q though something u shoud look into it ,,u said
"We are not interested in distributed transactions (i.d. a transaction that involves two different DBMS) but we
will certanly use clusters. We do not have previusly made COM Objects to recycle."
okay now let me tell u what MTS or COM+ can do for u
the main purpose of MTS or COM+ is not to handle the distributed transaction well yes one of its function is as DISTRIBUTED COORDINATOR but still its not the alone functions MTS based component cand do for u there are so many others like
a) Object Pooling
b) Transaction handling
c) Load balancing
d) JIT (Just In-time Activation)
and more...u see if u r plannig to go for a big project which involves several clients and server then u should plan ur poject to be a DISTRIBUTED APPLICATION,i knwo the old days when i usually went for the TRADITIONAL CLIENT-SERVER APP,which often give me the below from expectation results..although i know MTS based application are also sometime gives u not the desired results but still its the way the Components are designed ,if u have experienced in designing these kinds of componets then u know what to watch out for making a very robust compoent for distributed environment
good look for ur project
(Senior Software Eng )

RE: MTS and .Net

We have a large site (2 million+ hits a day), and we've had some problems with COM+ and our VB6 components.  Given that .NET Enterprise Services run through the COM interoperability layer (aka penalty layer), we plan to write our own object pooling when we rewrite in C#.

How? A combination of the singleton and the factory design patterns.

Chip H.

RE: MTS and .Net

well yes i agreed with Cliph if somoen could design a very good object right from scratch with not just object pooling but also marshalling handler and other stuff then he should go for it but it need a real effor to make a perfecto one though :)

RE: MTS and .Net

Even if you plan to stay with COM+ for it's object pooling and marshalling abilities, there *are* some things you can do when designing your .NET objects to minimize the performance impact of going through the COM Interop layer.  

Biggest bang for your buck would be to not use properties.  Every time you access a property that's another trip through the Interop layer.  What you should do instead is design method calls that accept everything through their parameters (i.e. "thick" methods).  That way you limit the extent of the performance hit.  Example:

Five property accesses plus a method call: 6 Interop trips
Thick method call: 1 Interop trip.

There's a book out from M&T (purple/red-ish cover) called "C# COM+ Programming" (http://catalog.idgbooks.com/product.asp?isbn=0764548352).  It's got a lot of good stuff in it.

Chip H.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close