multiple classes on remote server
From: ypul (ypul_at_yahoo.com)
Date: 08/06/04
- Next message: Jon Turner: "How Do I accomplish This"
- Previous message: Sam Santiago: "Re: IIS hosted object and SQL Server connection"
- Next in thread: Ken Kolda: "Re: multiple classes on remote server"
- Reply: Ken Kolda: "Re: multiple classes on remote server"
- Messages sorted by: [ date ] [ thread ]
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 ?
- Next message: Jon Turner: "How Do I accomplish This"
- Previous message: Sam Santiago: "Re: IIS hosted object and SQL Server connection"
- Next in thread: Ken Kolda: "Re: multiple classes on remote server"
- Reply: Ken Kolda: "Re: multiple classes on remote server"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|