Remoting To Multiple Servers

Posted on 2005-04-12
Medium Priority
Last Modified: 2012-08-14
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
                              "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??
Question by:crazyman
LVL 13

Author Comment

ID: 13925097
Found the solution:

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


Accepted Solution

DarthMod earned 0 total points
ID: 14112777
Submitted to PAQ with points refunded (500)

Community Support Moderator

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Integration Management Part 2
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question