Now we must write the class for the remote object. By convention, we name such classes so that they have the word "Servant" in their names, here MeetingServant. Note that this class is NOT generated by the IDL compiler - you must write it from scratch. An aside: Other ORB development environments work differently than the JDK 1.2 ORB. Some IDL compilers actually generate part of the implementation class for you, requiring you more or less to fill in the blanks. Not so with JDK 1.2 though; it requires you to write the entire implementation class.

Here, we extend _MeetingImplBase, which is the stub, and implement the methods from the Meeting interface, which was shown on the last page. To implement the attribute methods, we define a private Java string variable, ivDate, and retrieve or modify it during the "getter" and "setter" methods. We didn't really write much of an implementation for the "scheduleIt" method - we'll leave that as an exercise for the student!