473,473 Members | 2,039 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

C# solution in MTS / MSMQ?

Can a solution built in C# utilize MSMQ and/or MTS?

If so, does this make the training material I already have on MSMQ and MTS
in the context of VB6 an appropriate prerequisite foundation before learning
how to build C# solutions on MSMQ / MTS, if I already know VB6 as well as
C#?

Jon
Sep 2 '06 #1
11 3551
You can build enterprise-level applications using MSMQ and
EnterpriseServices. Your VB6 experience, however, is likely to be of limited
usefulness. A prime example is that you are referring to "MTS" a term which
hasn't been used by Microsoft for over 5 years.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Jon Davis" wrote:
Can a solution built in C# utilize MSMQ and/or MTS?

If so, does this make the training material I already have on MSMQ and MTS
in the context of VB6 an appropriate prerequisite foundation before learning
how to build C# solutions on MSMQ / MTS, if I already know VB6 as well as
C#?

Jon
Sep 3 '06 #2


<DIV>&quot;Jon Davis&quot; &lt;jo*@REMOVE.ME.PLEASE.jondavis.net&gt; wrote
in message news:OF**************@TK2MSFTNGP03.phx.gbl...</DIV>Can a
solution built in C# utilize MSMQ and/or MTS?
>
If so, does this make the training material I already have on MSMQ and MTS
in the context of VB6 an appropriate prerequisite foundation before
learning how to build C# solutions on MSMQ / MTS, if I already know VB6 as
well as C#?

Also be aware that .NET has much less need of the services provided by MSMQ
and COM+ (formerly MTS), than VB6 did. Each of these platform technologies
is still sometimes useful, and there is good support in the .NET framework
for them, but they are no longer the "bread and butter" of enterprise
applications.

David

Sep 3 '06 #3

"David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
|
|
| <DIV>&quot;Jon Davis&quot; &lt;jo*@REMOVE.ME.PLEASE.jondavis.net&gt; wrote
| in message news:OF**************@TK2MSFTNGP03.phx.gbl...</DIV>Can a
| solution built in C# utilize MSMQ and/or MTS?
| >
| If so, does this make the training material I already have on MSMQ and
MTS
| in the context of VB6 an appropriate prerequisite foundation before
| learning how to build C# solutions on MSMQ / MTS, if I already know VB6
as
| well as C#?
|
|
| Also be aware that .NET has much less need of the services provided by
MSMQ
| and COM+ (formerly MTS), than VB6 did. Each of these platform technologies
| is still sometimes useful, and there is good support in the .NET framework
| for them, but they are no longer the "bread and butter" of enterprise
| applications.
|
| David
|

Not sure where you get this idea from, what are the alternatives offered by
..NET? How would you implement enterprise like applications without resorting
to System.EnterpriseServices and System.Messaging (COM+ and MSMQ wrappers)?
Willy.
Sep 3 '06 #4


<DIV>&quot;Willy Denoyette [MVP]&quot; &lt;wi*************@telenet.be&gt;
wrote in message news:Oo**************@TK2MSFTNGP05.phx.gbl...</DIV>>
"David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
message news:%2****************@TK2MSFTNGP05.phx.gbl...
|
|
| <DIV>&quot;Jon Davis&quot; &lt;jo*@REMOVE.ME.PLEASE.jondavis.net&gt;
wrote
| in message news:OF**************@TK2MSFTNGP03.phx.gbl...</DIV>Can a
| solution built in C# utilize MSMQ and/or MTS?
| >
| If so, does this make the training material I already have on MSMQ and
MTS
| in the context of VB6 an appropriate prerequisite foundation before
| learning how to build C# solutions on MSMQ / MTS, if I already know
VB6
as
| well as C#?
|
|
| Also be aware that .NET has much less need of the services provided by
MSMQ
| and COM+ (formerly MTS), than VB6 did. Each of these platform
technologies
| is still sometimes useful, and there is good support in the .NET
framework
| for them, but they are no longer the "bread and butter" of enterprise
| applications.
|
| David
|

Not sure where you get this idea from, what are the alternatives offered
by
.NET? How would you implement enterprise like applications without
resorting
to System.EnterpriseServices and System.Messaging (COM+ and MSMQ
wrappers)?

Ok. EnterpriseServices (COM+) basically offers a bunch of services to
applciations:

Object Lifetime Management
Threading
Transaction Management
Distributed Components

You can do all of this in .NET without the help of COM+. The "COM" in COM+
should remind you that COM+ is an application server designed to service an
earlier generation of components.

..NET features such as

System.Threading
System.Transactions
Windows Communication Foundation (or .NET Remoting and web services)
..NET's OO functionality (constructors, singletons, thread agility)

Really make COM+ redundant.

For MSMQ, it's still a useful option for guaranteed delivery messages, but
SQL Server Service Broker is a better choice for many enterprise
applications. Having the persistent state of the application stored in one
place is a great advance over storing "messages" in the file system on the
application server, and "data" in the database.

See, EG

O COM+, Where Art Thou?
Rockford Lhotka

It is easy to say that EnterpriseServices in Microsoft .NET gives us access
to all the COM+ features. While this is accurate, it really isn't sufficient
because it may lead you to believe that you should just continue to use COM+
services in Microsoft .NET just as you did in COM, only with a different
name.

The reality is that some of the overwhelmingly positive benefits COM+
offered to COM development aren't so overwhelmingly positive in Microsoft
..NET. In other cases, features of COM+ that were unavailable to Visual Basic
6.0 developers are fully accessible when developing in Visual Basic .NET.

http://msdn.microsoft.com/library/de...et04232002.asp
Especially with .NET 3.0 what enterprise application requirement do you need
COM+ for anymore?

David
Sep 3 '06 #5
See inline.

Willy.

"David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
message news:e4**************@TK2MSFTNGP03.phx.gbl...
|
|
| <DIV>&quot;Willy Denoyette [MVP]&quot; &lt;wi*************@telenet.be&gt;
| wrote in message news:Oo**************@TK2MSFTNGP05.phx.gbl...</DIV>>
| "David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
| message news:%2****************@TK2MSFTNGP05.phx.gbl...
| |
| |
| | <DIV>&quot;Jon Davis&quot; &lt;jo*@REMOVE.ME.PLEASE.jondavis.net&gt;
| wrote
| | in message news:OF**************@TK2MSFTNGP03.phx.gbl...</DIV>Can a
| | solution built in C# utilize MSMQ and/or MTS?
| | >
| | If so, does this make the training material I already have on MSMQ
and
| MTS
| | in the context of VB6 an appropriate prerequisite foundation before
| | learning how to build C# solutions on MSMQ / MTS, if I already know
| VB6
| as
| | well as C#?
| |
| |
| | Also be aware that .NET has much less need of the services provided by
| MSMQ
| | and COM+ (formerly MTS), than VB6 did. Each of these platform
| technologies
| | is still sometimes useful, and there is good support in the .NET
| framework
| | for them, but they are no longer the "bread and butter" of enterprise
| | applications.
| |
| | David
| |
| >
| Not sure where you get this idea from, what are the alternatives offered
| by
| .NET? How would you implement enterprise like applications without
| resorting
| to System.EnterpriseServices and System.Messaging (COM+ and MSMQ
| wrappers)?
| >
| >
|
| Ok. EnterpriseServices (COM+) basically offers a bunch of services to
| applciations:
|
| Object Lifetime Management
| Threading
| Transaction Management
| Distributed Components
|
| You can do all of this in .NET without the help of COM+. The "COM" in
COM+
| should remind you that COM+ is an application server designed to service
an
| earlier generation of components.
|
| .NET features such as
|
| System.Threading

This is not the same thing, COM+ Threading services are attribute based
(just like all COM+ services) little or no threading code to write it's all
taken care of for you.

| System.Transactions
Yep, this is really the only service pulled from COM+, note that both use
MSDTC when escalating to a distributed transaction.
| Windows Communication Foundation (or .NET Remoting and web services)
| .NET's OO functionality (constructors, singletons, thread agility)
|

WCF is not released yet, and Remoting serves other purposes and it requires
..NET at both ends (not to talk about what it lacks), WCF will build on COM+
for some of it's services (at least for V1 of NetFx V3).

| Really make COM+ redundant.
|

Well, I have to disagree,
How about object pooling, component activation and launch support,
security services like "access and activation security control","private
components" "Identity selection" ...,
distributed components,
COM+ partitions with Active Directory Services integration ,
automatic or user controled application recycling,
application control (pausing/disabling),
run as a Windows service,
low memory activation gates,
Debugging features (Process Dump).....?
and this, all attributed, no or little code to write. And don't forget the
reduced management overhead, all component services & attributes can be
controled from native clients and are scriptable.
| For MSMQ, it's still a useful option for guaranteed delivery messages, but
| SQL Server Service Broker is a better choice for many enterprise
| applications.

I tend to disagree, SQL server is a separate product, it's not part of the
core OS services, nor is the Broker API part of .NET, and when you need
redundency (who doesn't want it?) it's even more expensive. And let's not
talk about administrative overhead and performance.
Having the persistent state of the application stored in one
| place is a great advance over storing "messages" in the file system on the
| application server, and "data" in the database.
|
| See, EG
|
| O COM+, Where Art Thou?
| Rockford Lhotka
|
| It is easy to say that EnterpriseServices in Microsoft .NET gives us
access
| to all the COM+ features. While this is accurate, it really isn't
sufficient
| because it may lead you to believe that you should just continue to use
COM+
| services in Microsoft .NET just as you did in COM, only with a different
| name.
|
| The reality is that some of the overwhelmingly positive benefits COM+
| offered to COM development aren't so overwhelmingly positive in Microsoft
| .NET. In other cases, features of COM+ that were unavailable to Visual
Basic
| 6.0 developers are fully accessible when developing in Visual Basic .NET.
|
|
http://msdn.microsoft.com/library/de...et04232002.asp
|
Sorry, this say's nothing "aren't so overwhelmingly" what is meant with,
and why should it be overwhelmingly ?
.... on the other hand - <features of COM+ that were unavailable to Visual
Basic
| 6.0 developers are fully accessible when developing in Visual Basic
..NET.- that's great isn't it?


|
| Especially with .NET 3.0 what enterprise application requirement do you
need
| COM+ for anymore?
|

Not sure, it's certainly a departure from COM+ as technology and it offers a
lot more (albeit a number of features are still missing), but as it's not
released yet, you can hardly call it "enterprise ready", (even V2 isn't yet
that widely accepted in the enterprises, let alone V3), and IMHO it targets
Vista and Longhorn more than W2K3, it will take years before it will and the
first release will use COM+ for a number of it's "enterprise services" (MSMQ
and COM+ integration services).

Willy.



Sep 3 '06 #6
Redundant or not, David, there are people who are still supporting MSMQ and
COM+ while also implementing C# solutions, and I am trying to figure out
whether there is a migration path to .NET v2 architecture that does not
entail dropping all prior investments in Windows DNA.

Jon
Sep 4 '06 #7

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.netwrote in message
news:Om**************@TK2MSFTNGP05.phx.gbl...
| Redundant or not, David, there are people who are still supporting MSMQ
and
| COM+ while also implementing C# solutions, and I am trying to figure out
| whether there is a migration path to .NET v2 architecture that does not
| entail dropping all prior investments in Windows DNA.
|
| Jon
|
|

All COM+ services are well integrated in .NET, System.EnterpriseServices and
System.Messaging are the namespaces that holds all the classes you need to
implement COM+/MSMQ (DNA) applications/components using C# or VB.NET. It
offers a rather smooth migration path because both .NET and native
applications use the same underlying technology, that means that you can mix
and match native and/or managed applications with native and/or managed
components. The COM+ and MSMQ wrapper classes (System.EnterpriseServices and
System.Messaging) are part of the existing and upcoming framework, WFC which
is part of the upcoming netfx3 is not meant to replace the existing
framework, it extends the existing technology with (Industry) standards
based (WS-* based protocols and services) distributed technology. It also
offers an integration path, so that WCF based applications will be able to
work with the current set of COM+/MSMQ based technologies. Now whether you
should migrate to .NET v2 now, or wait for Netfx3 is a question that you
have to answer, it depends on the size of the existing code, the need to
change the code (changing business logic or additional functionality)
etc..., but IMHO it's better to investigate a (planned) migration to .NET V2
now (you can't keep your VB6 code do you?) while keeping an eye on Netfx3.

Willy.

Sep 4 '06 #8


<DIV>&quot;Willy Denoyette [MVP]&quot; &lt;wi*************@telenet.be&gt;
wrote in message news:%2****************@TK2MSFTNGP04.phx.gbl...</DIV>See
inline.
>
Willy.

"David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
message news:e4**************@TK2MSFTNGP03.phx.gbl...
|
|
| <DIV>&quot;Willy Denoyette [MVP]&quot;
&lt;wi*************@telenet.be&gt;
| wrote in message news:Oo**************@TK2MSFTNGP05.phx.gbl...</DIV>>
| "David Browne" <davidbaxterbrowne no potted me**@hotmail.comwrote in
| message news:%2****************@TK2MSFTNGP05.phx.gbl...
| |
| |
| | <DIV>&quot;Jon Davis&quot; &lt;jo*@REMOVE.ME.PLEASE.jondavis.net&gt;
| wrote
| | in message news:OF**************@TK2MSFTNGP03.phx.gbl...</DIV>Can
a
| | solution built in C# utilize MSMQ and/or MTS?
| | >
| | If so, does this make the training material I already have on MSMQ
and
| MTS
| | in the context of VB6 an appropriate prerequisite foundation
before
| | learning how to build C# solutions on MSMQ / MTS, if I already
know
| VB6
| as
| | well as C#?
| |
| |
| | Also be aware that .NET has much less need of the services provided
by
| MSMQ
| | and COM+ (formerly MTS), than VB6 did. Each of these platform
| technologies
| | is still sometimes useful, and there is good support in the .NET
| framework
| | for them, but they are no longer the "bread and butter" of
enterprise
| | applications.
| |
| | David
| |
| >
| Not sure where you get this idea from, what are the alternatives
offered
| by
| .NET? How would you implement enterprise like applications without
| resorting
| to System.EnterpriseServices and System.Messaging (COM+ and MSMQ
| wrappers)?
| >
| >
|
| Ok. EnterpriseServices (COM+) basically offers a bunch of services to
| applciations:
|
| Object Lifetime Management
| Threading
| Transaction Management
| Distributed Components
|
| You can do all of this in .NET without the help of COM+. The "COM" in
COM+
| should remind you that COM+ is an application server designed to service
an
| earlier generation of components.
|
| .NET features such as
|
| System.Threading

This is not the same thing, COM+ Threading services are attribute based
(just like all COM+ services) little or no threading code to write it's
all
taken care of for you.

| System.Transactions
Yep, this is really the only service pulled from COM+, note that both use
MSDTC when escalating to a distributed transaction.
| Windows Communication Foundation (or .NET Remoting and web services)
| .NET's OO functionality (constructors, singletons, thread agility)
|

WCF is not released yet, and Remoting serves other purposes and it
requires
.NET at both ends (not to talk about what it lacks), WCF will build on
COM+
for some of it's services (at least for V1 of NetFx V3).

| Really make COM+ redundant.
|

Well, I have to disagree,
How about object pooling, component activation and launch support,
security services like "access and activation security control","private
components" "Identity selection" ...,
distributed components,
COM+ partitions with Active Directory Services integration ,
automatic or user controled application recycling,
application control (pausing/disabling),
run as a Windows service,
low memory activation gates,
Debugging features (Process Dump).....?
and this, all attributed, no or little code to write. And don't forget the
reduced management overhead, all component services & attributes can be
controled from native clients and are scriptable.
. . ..

I think the question is not whether COM+ has a number of useful features: it
does. Or whether it's hard to use once you understand those features: it
isn't. Or whether you should continue to use it for scenarios it handles
well or applications that are coded for it: you should.

The issue is whether COM+ is still necessary for enterprise applications.
And if it's not necessary, whether a principle of economy might relegate its
use to a few scenarios for a majority of developers.

Remember before .NET, you had VB6, a safe and easy but low-functioning
language, and C++ a much more capable, but complicated and error-prone
language where simple coding errors cause process failure. Producing an
enterprise without COM+ in VB6 was nearly impossible, and in C++ it could be
very expensive. In either case, COM+ was a necessary technology for
building enterprise applications.

In .NET, without using Enterprise Services, you have IIS Web Applications,
IIS Web Service Applications and Windows Services. Every .NET developer
must understand how to build, deploy and manage these application types.
They are necessary. Enterprise applications can be built with just these
and the .NET languages and framework. They are sufficient.
David

Sep 5 '06 #9
Thanks for your responses.

So let me get this straight. In addition to doing things "the .NET way" in
C#, you *can* utilize MSMQ / COM+ (DNA) in C# by way of COM wrappers that
are accessible in the System.EnterpriseServices and System.Messaging
namespaces. Is this correct? I have not perused these namespaces, so whether
they are wrappers is also being asked about here for confirmation.

I am aware that .NET intends to deprecate DNA but wanted to see if legacy
support knowledge could be obtained in the context of C# and not just things
like VB6.

Thanks,
Jon

"Jon Davis" <jo*@REMOVE.ME.PLEASE.jondavis.netwrote in message
news:OF**************@TK2MSFTNGP03.phx.gbl...
Can a solution built in C# utilize MSMQ and/or MTS?

If so, does this make the training material I already have on MSMQ and MTS
in the context of VB6 an appropriate prerequisite foundation before
learning how to build C# solutions on MSMQ / MTS, if I already know VB6 as
well as C#?

Jon

Sep 5 '06 #10


<DIV>&quot;Jon Davis&quot; &lt;jo*@REMOVE.ME.PLEASE.jondavis.net&gt; wrote
in message news:Oz**************@TK2MSFTNGP06.phx.gbl...</DIV>Thanks for
your responses.
>
So let me get this straight. In addition to doing things "the .NET way" in
C#, you *can* utilize MSMQ / COM+ (DNA) in C# by way of COM wrappers that
are accessible in the System.EnterpriseServices and System.Messaging
namespaces. Is this correct? I have not perused these namespaces, so
whether they are wrappers is also being asked about here for confirmation.
Yes this is correct. Basically the .NET framework provides managed wrappers
for most important parts of the Windows operating system. System.Messaging
provides access to MSMQ and System.EnterpriseServices provides access to
COM+. In fact, with the attribute programming model for EnterpriseServices,
it's substantially easier to leverage COM+ in .NET than in any pre-.NET
language.

David

Sep 5 '06 #11
Thanks Willy. I guess the only question I have left is how much of the COM+
wrapper stuff in System.EnterpriseServices and System.Messaging is already
in NetFX v2. I am not exploring this for my particular work environment so
much as my career path, so I will definitely explore v3 WCF but in the short
term I need to respect and pay close attention to adoption levels of
existing NetFX implementations.

- Jon
Sep 5 '06 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Andrew Gordon | last post by:
I'm investigating getting Microsoft Navision to do stuff from a Python script. The recommended way seems to be to use message queues (MSMQ). I can get Navision to send a message to itself fine. I...
3
by: Vai2000 | last post by:
hi all, I have a winsvc which reads of messages out an MSMQ. Can someone help with this problem. If my server goes down and comes back up my WinSvc doesn't picks up messages accumulated in the...
10
by: Jet Leung | last post by:
Hi all, Where is the MSMQ use for? For example, I have a client program to control the database and how can I use MSMQ in my program? When I should use it? For example I have a method to insert...
4
by: SRLoka | last post by:
I have an application that has five threads. All five threads write to the same MSMQ. All five threads are using the same global instance to send data to the MSMQ server(on same machine)....
5
by: Alex Nitulescu | last post by:
Hi. I'm trying to make MSMQ work, so I go to Control Panel, Windows Components, I select MSMQ (Message Queuing Client Setup, actually) and about half-way through I get a nice message box saying ...
0
by: yonirabin | last post by:
Hello, I am building a system in C# 2.0 using the master - worker design pattern The system is supposed to work as follows: 1. The Master sends Command objects to the workers 2. All Commands are...
3
by: yonirabin | last post by:
Hello, I am building a system in C# 2.0 using the master - worker design pattern The system is supposed to work as follows: 1. The Master sends Command objects to several workers 2. All Commands...
1
by: Florence Tissot | last post by:
We are seeing some kind of resource leak in our performance lab running an ASP.NET (2.0) application that sends and receives messages from 2 public MSMQ queues. Here's a brief summary of what are...
5
by: Christian Schlemmer | last post by:
Hi, in a webapplication, after a submit a page is called which is processing images uploaded by the user. currently after submit a status bar will be visible (the page for the image processing...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.