If you are a Microsoft developer, already comfortable with .NET Remoting, or new to distributed technologies, start with “A simple .NET Remoting example”. Developers familiar with J2EE should start with “A simple J2EE example”, and those familiar with CORBA should start with “A simple CORBA example”.The following three lines of code show how easily you can instantiate the remote object MyServer and call a Method() on it.The information for establishing a connection with the server and locating the remote object are contained in an XML configuration file, as shown in “.NET Remoting configuration”.There is no concept of narrowing an object’s type in .NET. You locate the object and cast it to its specific type all in one step.The next line creates an instance of myServer.It’s that simple! If you want more information on configuring .NET Remoting using the VisiBroker for .NET protocol, see “.NET Remoting configuration”.The next two lines declare a variable to contain the location of the EJBHome object (myServerHomeObject) on the server, and look it up.The next line creates an instance of myServer.Finally we can invoke a method on MyServer:The next two lines declare a variable to contain the location of the factory object (myServerHomeObject) on the server, and look it up.The next line creates an instance of myServer.Finally we can invoke a method on MyServer.This section contains the details of the configuration file alluded to in the .NET example in “A simple .NET Remoting example”.When we instantiated MyServerHome in the first line of the example, we used the new operator on MyServerHomeRemotingProxy(). In order to locate the object on which to make the call, the example configuration file uses the wellknown element,<wellknown type="MyServerHomeRemotingProxy, MyApplication"where MyServerHomeRemotingProxy is the type name and MyApplication is the name of the assembly where the type is defined.MyServerHome is represented as a wellknown object (also known as Server-activated object or SAO). Any CORBA or EJB server object can be represented as an SAO. In addition, EJBs can be represented as Client Activated Objects (CAO). See “Client-activated objects vs. server-activated objects” for more information.