Listing 5: Generated client source file

import javax.rmi.*;
import javax.naming.*;
import com.tricomgroup.beans.v11.session.hello.*;

public class HelloClient {
 public static void main(String args[]) throws Throwable {
  Context ctx = new InitialContext();
  HelloHome home =
    (HelloHome) PortableRemoteObject.narrow
    (ctx.lookup("HelloHome"),HelloHome.class);
  Hello remote = home.create();

  /* This line added manually */
  remote.sayHello("Paternostro");
 }
}
— End of Listing —