Just like we did with RMI, we need to write a main program that acts as the object server. Here we overview the steps involved. First, we must initialize the server-side object request broker runtime; then we can create an instance of the remote object class we saw on the last page. Next, we must inform the ORB about the new object so it can be called remotely; we refer to this process as connecting the object to the ORB. Finally, we can assign the new object a name so that clients can find it - again this technique is quite similar to what we saw with RMI.

Let's now look at these steps in detail.