remoting vs com

C#

    Next

  • 1. How to put myself as publisher on C# code in VS 03 (to use with trust assembly)
    Hi, I'm coding some small applications, that will run from a networkdrive. To make the applications run from network drive, I need to trust every one of them. I use the .net Wizard, to give the applications full trust, then they run. I can see, there's an oppertunity to trust all assemblys from one publisher. But how can I put myself as publisher on my code in Visual Studio 2003? Or is there another and more direct way, to make my applications run from a network drive? Best regards Mads
  • 2. Checking if a Program is installed
    I have the following Problem: I am writing a C# Software that should access Microsoft Outlook and Adobe Indesign through interop. Now those two applications are not installed on every computer in the company so, on those computers without those applications the features using Outlook and Indesign should be disabled. How can I check if the applications are installed before instanciating application objects? I tried to simply instanciate an Outlook Application Object on a computer without Outlook but no Exception was thrown. It simply was an indefinitely blocking method call. Any suggestions? Thanks Ferdinand
  • 3. Creating User Control an display on Panel
    Hi I'm new to c# and I need some advice to display user controls on a target panel. I Intend to use some function like this public UserControl CreateUserControl(UserControl uc) { if (uc==null) { //create this user control uc.CreateControl(); this.pnlTarget.Controls.Add(uc); uc.Dock = DockStyle.Fill; } return uc; } I get error on uc.CreateControl();...There is other possibilities ??? Littl sample code would be verry usefull. TIA PaulM
  • 4. tuning the CLR for performance
    In Java you can specify heap using ms mx options. My C# app is chrunring on GC and I was wondering if perhaps presizing the heap would improve performance. However I couldnt find any options for this. Is there a way to do this in machine.config or app.config ? What other parameters can I tune for the CLR ? =sam

remoting vs com

Postby Sharon » Fri, 05 Dec 2003 12:30:10 GMT

hi all.
i don't know much about com or .net remoting so this question might be a
little confused.
as far as i understand com system provides about the same functionality as
ejb
meaning that it has to have some kind of container.
an application server like jboss in the case of ejb.
in .net remoting i can register my service classes without the need for an
application server.
so is there any advantage to using com / application server?
when you'll have to build a distributed application which method will you
choose?
is com going to become legacy?
10x much.





Re: remoting vs com

Postby David Browne » Fri, 05 Dec 2003 15:42:34 GMT






COM (nee ActiveX, nee OLE) = Component Object Model

COM+ (nee MTS, aka Component Services, aka Enterprise Services) =
Application Server

COM is definitily on the way out.  COM+ is not.

COM+ offers a range of services for running your service classes.  (Lifetime
Services, Queued Components, Object Pooling, Contexts etc).  You can use
these or do without quite easilly.  For instance COM+ allows you to drop in
a service class and run it as a service.  You can also just write a service,
open a remoting channel, and you've got your own application server.

David




Re: remoting vs com

Postby Krishnan » Fri, 05 Dec 2003 17:02:55 GMT

This might be a bit offbeat.
I have used COM with VB, but not COM+ much. I heard that COM+ server does
not provide object pooling although the UI has the facility to set the
object pool size! Is this true?

Krishnan
"David Browne" <davidbaxterbrowne no potted  XXXX@XXXXX.COM > wrote in





as
an
you
(Lifetime
in
service,



Re: remoting vs com

Postby Sharon » Fri, 05 Dec 2003 22:59:25 GMT

got it .
10x :)
one more question:
is com+ replacing dcom as well?


"David Browne" <davidbaxterbrowne no potted  XXXX@XXXXX.COM > wrote in





as
an
you
(Lifetime
in
service,



Re: remoting vs com

Postby David Browne » Sat, 06 Dec 2003 00:00:47 GMT






DCOM is the remoting protocol for COM.
COM+ uses DCOM for remoting COM objects.

So as COM components are replaced by .NET assemblies, DCOM is replaced by
.NET remoting.

David



Re: remoting vs com

Postby Sharon » Sat, 06 Dec 2003 14:07:58 GMT

10x again for moving things into place :)

"David Browne" <davidbaxterbrowne no potted  XXXX@XXXXX.COM > wrote in








Similar Threads:

1.dcom vs com+ vs remoting

Hello.

I am doing a research on dcom, com+ and remoting.

We are about to develop a web application consisting 3 tiers ( web server,
application server, db server )

We are going to develop front end in asp.net and ms sql in the back end.

The middle tier mostly will be grabbing data from the db and give the result
to the front end.

I'd like to know what would be the better way to do this.

Should I use only one object in the middle tier that communicate to all the
threads requested from the web server? ( i'd like to know the pres and
cons )

I heard that dcom is better than com+ in particular situation so I'd like to
know in what situation remoting would be the best fit in the middle tier and
why

Thanx in advance


2.Windows-service remoting - IPC vs. COM

Hi,

i am developing a windows service in C# with the .NET framework 2.0
which must be configured by different applications (VB 6.0 and C#).

I need one single object which should be used (how its made by the
IPC-remoting-mechanism). But it seems to me that i can't use the
IPC-channel mechanism for the VB 6.0 applications. So i wanna use a COM
component in VB 6.0. I think i can use a COM wrapper to use the
IPC-mechanism under VB 6.0, but it would be better to use only one
technique (so i guess this must be COM).

But can i do the same things with com as with IPC ? Can i use one
single object for all applications? And can i use event-handling like
with IPC-remoting?

Thank you for your information.

3.Remoting vs. COM GetObject()

4.Remoting Server and COM calls (slow COM calls)

Hi all,

I have a remoting server (console app at the moment) which hosts a
SingleCall object.  This object makes several calls to a COM (3rd party)
object to retrieve data.  I have noticed that the calls are about 10 times
slower when the object is remoted vs. in-process.  I have read through the
newsgroups and it appears the problem is based on the fact that the Remoting
Infrastructure uses MTA threads to handle requests.  Is this correct?  If
so, how do I get object to run on a STA thread?

TIA
Cole


5.Subject: Remoting Server and COM calls (slow COM calls)

Hi all,

I have a remoting server (console app at the moment) which hosts a
SingleCall object.  This object makes several calls to a COM (3rd party)
object to retrieve data.  I have noticed that the calls are about 10 times
slower when the object is remoted vs. in-process.  I have read through the
newsgroups and it appears the problem is based on the fact that the Remoting
Infrastructure uses MTA threads to handle requests.  Is this correct?  If
so, how do I get object to run on a STA thread?

TIA
Cole


6. Remoting Server in C# Outlook COM Add-in?

7. COM DLL works fine in C# but not when using Remoting

8. .net remoting and COM



Return to C#

 

Who is online

Users browsing this forum: No registered users and 85 guest