Remoting To Multiple Servers

Posted on 2005-04-12
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

    Found the solution:

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

    LVL 1

    Accepted Solution

    Submitted to PAQ with points refunded (500)

    Community Support Moderator

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    745 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now