multiple classes on remote server

From: ypul (ypul_at_yahoo.com)
Date: 08/06/04


Date: Fri, 6 Aug 2004 14:48:59 +0530

I have gone through some examples of remoting

on the server we have classes
-------------------
Class MyRemoteObject

Inherits MarshalByRefObject

Implements IMyRemoteObject

--------------
Module ServerStartup

Sub Main()

Console.WriteLine("ServerStartup.Main():Server started ")

Dim chnl As New HttpChannel(1234)

ChannelServices.RegisterChannel(chnl)

RemotingConfiguration.RegisterWellKnownServiceType(GetType(MyRemoteObject),"MyRemoteObject.soap ",WellKnownObjectMode.SingleCall)

------------------------

my question is
what if I have 10 different classes on my server machine say :-
MyRemoteObject1 , MyRemoteObject2............,MyRemoteObject 10

Then do I need to write the code this way in the server class (as given below)?

RemotingConfiguration.RegisterWellKnownServiceType(GetType(MyRemoteObject),"MyRemoteObject1.soap ",WellKnownObjectMode.SingleCall)

RemotingConfiguration.RegisterWellKnownServiceType(GetType(MyRemoteObject),"MyRemoteObject2.soap ",WellKnownObjectMode.SingleCall)

.

.

.

RemotingConfiguration.RegisterWellKnownServiceType(GetType(MyRemoteObject),"MyRemoteObject10.soap ",WellKnownObjectMode.SingleCall)

Hope u undestand the question .

i am sure there is some other proper solution to make the classes available on the server ...........

can u please help me ?



Relevant Pages

  • facing problem in vb.net remoting
    ... i have problem in making more than on remoteobject class in one ... Class MyRemoteObject ... Inherits MarshalByRefObject ... Then do I need to write the code this way in the server class? ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: multiple classes on remote server
    ... Other than the fact that all 10 of your RegisterWellKnownServiceType() calls are attempting to register the same type (I assume that's just a cut-and-paste error), this is right way to do this. ... Class MyRemoteObject ... what if I have 10 different classes on my server machine say:- ...
    (microsoft.public.dotnet.framework.remoting)
  • Re: client close the socket. how the server knows?
    ... the server know that the socket is closed from the client side. ... > Private Delegate Sub UpdateListBoxDel(ByVal Data As String) ... > Private Sub Button1_Click(ByVal sender As System.Object, ...
    (microsoft.public.dotnet.languages.vb)
  • .Net remoting doesnt work in Wan area.
    ... i try to broadcast events raised in server to ... Public Sub DoSomething ... Dim del As ... Dim clientProv As New BinaryClientFormatterSinkProvider ...
    (microsoft.public.dotnet.framework)
  • Re: How to get fastForward to work in the Windows Media Player Control?
    ... Sub ShutMeDown ... WMP is *client side*. ... Even if you could try to run WMP somehow at the server end, ... "Player" is not a child of Form1, it's a child of the Document object. ...
    (microsoft.public.windowsmedia.player.web)

Loading