Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Remoting / October 2003

Tip: Looking for answers? Try searching our database.

Conceptual Question about Remoting Object.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Anson - 29 Oct 2003 16:51 GMT
Hello,

I would like to clarify something about Remoting Object in .NET.

Knowing from MSDN that in order for Remote Object to work, I need 3
components.
a) RemotableType object, just like a regular dll with additional remotable
feature.
b) Host Application, which is a listener listens for remote clients of a
remotable type
c) Client Application, which is an application that creates an instance of
your remotable type and accesses designated members.

I would like to know:
(1) Can I run remote object without a web server (IIS)?
(2) Can I run remote object without having a server program (host
application or listener) running and
waiting for a client call?
if no, can I utilize the proxy feature without using the listener?
(3) Can I call (from PC1) a remote object in another PC (e.g. PC2) and then
the remote object call another remote object in PC3. totally, 3 PC involves?

Thank you

Anson
Sunny - 29 Oct 2003 17:58 GMT
Hi,
pls read inline:

> Hello,
>
[quoted text clipped - 11 lines]
> I would like to know:
> (1) Can I run remote object without a web server (IIS)?
Yes, the server part (you call it listener) can be
1. console app - usually for test apps, or while creating
2. windows service
3. hosted in IIS - the advantage is that you can use SSL,
authentications, etc., but you can not use TCP. And it is slower than
windows service.

> (2) Can I run remote object without having a server program (host
> application or listener) running and
> waiting for a client call?
Hmm, I'm now sure I can understand you. The purpose of remoting is, that
there is a client which makes a calls, and server which executes the
calls. But you can run server and client on the same machine.
If you do not have server(listener) who will receive the calls?

> if no, can I utilize the proxy feature without using the listener?
The proxy is created when you invoke "new" or Activator.GetObject. At
that moment no call is made to the server. The connection is established
and call is made when client makes a method call on the remote object.

And, you can create a local copy of the same type of object if you
haven't set up the remoting system. I.e. in the shared dll you may have
a class implementation of MyRemoteObject, and if you are offline (you
make the logic how to decide), you can create a local object with new
MyRemoteObject();

> (3) Can I call (from PC1) a remote object in another PC (e.g. PC2) and then
> the remote object call another remote object in PC3. totally, 3 PC involves?

Yes, as many as you want. The sweet thing is, that PC2 can return to PC1
the reference to a remote object on PC3, and the invoking a method on
that object on PC1 will directly be passed to PC3.

> Thank you
>
> Anson

Hope that helps
Sunny

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.