• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

Remoting To Multiple Servers

I need to be able to create a remote object on any number of different machines, it is always the same object but depending on the configuration i need to have multiple objects of the same type but remoted on different servers.


Currently using
RemotingConfiguration.RegisterWellKnownClientType(typeof(RemoteObject),
                              "tcp://" + RemoteMachineName + ":9000/ServerLoader/RemoteObject");
robj = new RemoteObject();


Works fine and i can remote this object, but how would i go about then activating a second instance on another machine but keeping the first instance in tact at the same time??
0
crazyman
Asked:
crazyman
1 Solution
 
crazymanAuthor Commented:
Found the solution:

robj = (RemoteObject) Activator.GetObject( typeof(RemoteObject),"tcp://" + RemoteMachineName + ":9000/ServerLoader/RemoteObject" );

0
 
DarthModCommented:
Submitted to PAQ with points refunded (500)

DarthMod
Community Support Moderator
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now