Remoting vs. COM GetObject()

dotnet framework

    Next

  • 1. OT: newbie routing, vpn
    Hello, sorry for this OT But I don't find where to begging for studding how to use and config routing, vpn. Everything I found is more advanced that what I can use. Is the a good place for newbie with this topics (routing, vpn...) Thank for your help MajorTom
  • 2. Suggestion needed reagrding Impersonation
    Hi All, I have an application in which I have a service running as some user. And i have a dll which odes remoting calls. my question is Any one who wants to connect to DB has to use dll. Now my problem is that only one user can write to datbase. ie the user running the service. Say if user1,user2 have to make any changes to datbase they have to make through admin1 how to achive this. TIA -- .NetHelpWanted
  • 3. Remoting and web-client
    Hi Is there any best practises about how and when channels should be registred in a web client? I have a Web application that gets data from a business layer on a remote machine. When should my channel be registred? Thanks in advance! /Henke
  • 4. Remoting in a web scenario and using a web custom control
    Hi, So, using .net remoting, in a web scenario (ASP.NET/C#) I need to do a web custom control. This control will have to be implement in any project that come. Well, today, I have some code like this: Html pages with framesets. In the main frame, I have a javascript. This javascript refresh a aspx page. The remote server is create in the global.asax of this web project. In the global.asax code too, I register the http channel. When one client do the login, I thread ii and make this thread silent. To raise some event in a client, I create a console application. Today, this console just wake up especific thread of especific user;. In the future, this applications needs to: Transfer de logged user to another page Send message from one user to another Send message from server to especific user. And another thinks... So, how can I do that, thinking this: Today using frames. The frames need to be remove. The controle can be a IFRAME? It need to do a web custom control. But, in this way, where I create and start the remoting server and create the http channel? Please, any help is appreciate. Sorry my english. Thanks. Fernando
  • 5. Remoting performance channel vs multiple channels
    TcpServerChannel channel = new TcpServerChannel("tcpmine",5000); ChannelServices.RegisterChannel(channel); MyServiceOne obj1 = new MyServiceOne(); ObjRef oref = RemotingServices.Marshal(obj1,"MyServiceOne"); MyServiceTwo obj2 = new MyServiceTwo(); ObjRef oref2 = RemotingServices.Marshal(obj2,"MyServiceTwo"); This works fine, and now I have two questions. What are the advantages to creating a new channel on a new port and have clients access only servicetwo on the second port? TcpServerChannel channel2 = new TcpServerChannel("tcpmine2",5001); ChannelServices.RegisterChannel(channel2); When I say advantages I am thinking performance, throughput or number of conncurrent clients and I have no idea if sharing a port affects either.

Re: Remoting vs. COM GetObject()

Postby Sam Santiago » Sat, 14 Aug 2004 05:54:03 GMT

It depends on what you are trying to do and how you would like your apps to
communicate.  You can always use other methods such as a common database,
MSMQ, or a shared file.  You can still use COM+ and create a serviced
component used by both applications.  And you can use remoting as well.
Here's a link with some info and more links:

Distributed App Communication
 http://www.**--****.com/ 

Thanks,

Sam

-- 
_______________________________
Sam Santiago
 XXXX@XXXXX.COM 
 http://www.**--****.com/ 
_______________________________




between
this
way
the
can



Re: Remoting vs. COM GetObject()

Postby Mike » Wed, 18 Aug 2004 11:17:44 GMT

I'm new to remoting (duh, see previous post) but I'd be surprised if someone
hasn't already written a MemoryMappedFileChannel for remoting. (I'm
surprised there isn't one in the core classes.)

Apres google NB: Apparently www.genuinechannels.com has a local channel, in
addition to gobs of other stuff. (No relation, and no personal experience.)
Didn't see any free code for local channels.

m





to
 http://www.**--****.com/ 



applications



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.remoting Activator.GetObject help!!

I have a remoting app that calls a windows service using 
the Activator.GetObject(type, url).  works great with 
studio 2002 and framework 1.0.  However  I upgraded to 
2003 and 1.1.  Now it dosen't allow any access to it.  
How can I fix this?  thanks in advance
-RL

3.Simulate 'GetObject' using remoting

I have a document based MDI application where the user can write
orders. 
I have split the application up in two parts:

StartUp.exe: This exe is started when doubleclicking one of the order
files in explorer. This exe basically only creates an instance of
working.dll and thells it to open the order.

Working.dll: This is where all the work is done. Contains an MDI form
where the orders are edited.

I have now some other application where I generate orders. They can
create instances of the working.dll but if I have 3 apps generating
orders I have 3 instances of working.dll.

What I'd like to do: if Startup.exe is already running I want to pick
up this instance and generate the orders using this instance.

This all runs locally on one machine.

Can this be done using remoting but on a local machine only?
If yes, can anyone pioint me to a sample doing something similar. I
have no experience with remoting at all.

Tosch

4.Activator.GetObject and Remoting.Proxies.ProxyAttribute

Hi, 
I have found a way (in Don Box's book) to Intercept all 
calls to method of a class using Proxies.ProxyAttribute, 
actually class which derives from this one. But on my 
current project we are using interfaces (and 
Activator.GetObject )  instead of class implantation  to 
distribute dependant classes over different servers, is 
there a way to make similar attribute to intercept all 
calls to an interface instead of class. 

I would like to use this for performance tracking and 
caching. Is there a better way for achieving this, or am 
I making some stupid mistake and forgetting something 
important


Thanks
Almir
 

5.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.

6. remoting vs com

7. Using GetObject to get instance of running COM Server

8. Activator.GetObject() does not work when called via COM



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 21 guest